Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

code works in XL 2003 but not 2000

Status
Not open for further replies.

sedgely

Technical User
Feb 21, 2002
406
GB
i have some code in a workbook created in Excel 2003 when i try to run this in Excel 2000 i get an error, the particular bit of code that throws the error is in the "pastespecial" method. the code i have is
Code:
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
i am assuming that "xlPasteValuesAndNumberFormats" is not supprorted in 2000 how can i get this to work in BOTH versions?

Cheers, Craig
Si fractum non sit, noli id reficere
 
split it into 2

Selection.Pastespecial paste:=xlValues
Selection.Pastespecial paste:=xlFormats

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Geoff
Once again you have sorted me out. Thanks

Cheers, Craig
Si fractum non sit, noli id reficere
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top