G
Guest
I have been using the macro below to paste values copied to the clipboard in Excel 2000. For example, I will use the Excel copy command to copy the value of a cell (or a range of cells), then click on another cell in either the same worksheet or another worksheet in the same workbook. Then, I would run the macro to paste special only the values copied leaving the cell only the values pasted while persreving the existing cell formats. This macro has worked for me for 2 years running Excel 2000 under Windows 2000 operating system. I have recently purchased a new computer with the Windows XP operating system and am no longer able to run this macro. Every time it is run, I receive the following error message
Run-time error '1004'
PasteSpecial method of Range class faile
This seems like it should be simple to do, but I am stumped. Thanks for any help you can provide
Sub paste_values(
' paste_values Macr
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
False, Transpose:=Fals
End Su
Run-time error '1004'
PasteSpecial method of Range class faile
This seems like it should be simple to do, but I am stumped. Thanks for any help you can provide
Sub paste_values(
' paste_values Macr
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
False, Transpose:=Fals
End Su