PC Review


Reply
Thread Tools Rate Thread

Change PasteSpecial

 
 
Dode
Guest
Posts: n/a
 
      18th Dec 2007
I'm bringing in data from various worksheets into one worksheet - with each
of the worksheets being copied into the last row. Problem : I'd like to
change the existing script from PasteSpecial to paste so I do not loose the
time format. Currently it is changing the data into a value (ie 12:00 AM =
..05060)

Have tried various wordings - pastevalue / value - but am not successful.

thanks


Windows("Extract data.xls").Activate
With Sheets("Interval")
lastrow = .Cells(.Rows.Count, "j").End(xlUp).Row
Application.Windows(2).Activate
Range("A1:J200").Copy
.Cells(lastrow + 1, "j").PasteSpecial Paste:=xlAll
End With
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      18th Dec 2007
I usually use two paste special steps, with xlPasteValues and xlPasteFormats

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Dode" <(E-Mail Removed)> wrote in message
news:5C1B617F-B27C-4D89-896D-(E-Mail Removed)...
> I'm bringing in data from various worksheets into one worksheet - with
> each
> of the worksheets being copied into the last row. Problem : I'd like to
> change the existing script from PasteSpecial to paste so I do not loose
> the
> time format. Currently it is changing the data into a value (ie 12:00 AM
> =
> .05060)
>
> Have tried various wordings - pastevalue / value - but am not successful.
>
> thanks
>
>
> Windows("Extract data.xls").Activate
> With Sheets("Interval")
> lastrow = .Cells(.Rows.Count, "j").End(xlUp).Row
> Application.Windows(2).Activate
> Range("A1:J200").Copy
> .Cells(lastrow + 1, "j").PasteSpecial Paste:=xlAll
> End With



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why need to use Selection.PasteSpecial vs myRange.PasteSpecial EagleOne@discussions.microsoft.com Microsoft Excel Programming 4 25th Jun 2007 05:34 PM
Help with PasteSpecial staeri@gmail.com Microsoft Excel Programming 2 9th Jun 2006 11:35 AM
PasteSpecial Kevin Microsoft Excel Programming 3 7th Oct 2004 01:07 PM
pastespecial =?Utf-8?B?SmVmZg==?= Microsoft Excel Programming 4 28th Sep 2004 10:30 PM
pastespecial Claude Microsoft Excel Programming 2 24th Feb 2004 01:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 AM.