View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
marcevan marcevan is offline
external usenet poster
 
Posts: 1
Default Excel 2003 vs 2000: PasteSpecial


Macro in 2003 has this snippet which errors (1004) in Excel 2000:

Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats,
Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False

Macro recorded in Excel 2000 has this:

Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False

Excel 2000 version seems to work OK in 2000 and 2003...2003 only works
in 2003 (not in 2000).

Guessing "xlPasteValuesandNumberFormats" is not 2000 legal.

Just worries about some of the issues I'm reading about with Excel 2000
macros and use of PasteSpecial needed some kind of columnwidth setting
hard coded.


--
marcevan
------------------------------------------------------------------------
marcevan's Profile: http://www.excelforum.com/member.php...o&userid=27766
View this thread: http://www.excelforum.com/showthread...hreadid=472729