LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default VBA Pasting

Hi,
I realize this is probably incredibly simple but I've somehow lost my
ability to do a paste special command in VB that was previously working.
Excel returns an error
"PasteSpecial method of range class failed". It happens from a module level
routine or worksheet level. As a side note, I've found at different times in
the past that my environment occassionally doesn't recognize other common
Excel constants and to get the ball rolling, I sometimes have to use a
literal in place of the constant name. I have Excel 2003 w/ Service Pack 2.

Worksheets("Sheet1").Range("aw7:ba7").Copy
Worksheets("Sheet1").Range("aw7:ba7").PasteSpecial xlPasteValues

Thanks much,
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
pasting David Gerstman Excel Worksheet Functions 2 July 13th 07 08:02 PM
pasting geebee Excel Programming 1 September 5th 06 10:33 PM
Pasting Raman325[_36_] Excel Programming 1 May 16th 06 05:08 PM
Pasting on Filtered Data Sheets without pasting onto hidden cells CCSMCA Excel Discussion (Misc queries) 1 August 28th 05 01:22 PM
Pasting numbers and formulas without pasting format. Dan Excel Discussion (Misc queries) 3 March 27th 05 03:47 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"