paste special error
Move Windows("PRCDTEMP.XLS").Close to the end and all should be ok
or just use paste. When you close original workbook you cannot use the paste
special command!
Rgds
Nelly
"Junior728" wrote in message
...
Hi, this is my code, but i got a runtime error of 1004 when i run below:
Can someone help pls?
Workbooks.Open ("H:\My WorkStation\PRCD\PRCDTEMP.XLS")
Windows("PRCDTEMP.XLS").Activate
Range("A2").Select
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Copy
Windows("PRCDTEMP.XLS").Close
Workbooks.Open ("H:\My WorkStation\PRCD\" + strName)
Windows(strName).Activate
With Worksheets("Sheet1").Range("B65536").End(xlUp).Off set(1, 0)
.PasteSpecial xlValues .... it stops here! cannot paste due to range
class
failure...
End With
Application.CutCopyMode = False
|