Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
This line of code brings up a "Compile error" - "Expected: end of statement" with Paste highlighted, what end of statement is it expecting i think I've tried them all. ActiveCell.Offset(-4, -1).Resize(1, 29).Copy Destination:=ActiveCell.Offset _ (-4, -1).PasteSpecial Paste:=xlPasteValuesAndNumberFormats From previous posts I've read it appears it's best to split these into 2 lines or place in a "With - End With. Any advice very much appreciated. I'm trying to tidy up my code and clear formulas not required three rows back as I add new data to the sheet. -- Thank you Regards Bob C Using Windows XP Home + Office 2003 Pro |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
PasteSpecial Error 1004? | Excel Discussion (Misc queries) | |||
PasteSpecial Method Error | Excel Discussion (Misc queries) | |||
Runtime Error 1004 when trying to PasteSpecial | Excel Discussion (Misc queries) | |||
PasteSpecial Error | Excel Programming | |||
Run-time error '1004' PasteSpecial Method of Range Class Failed | Excel Programming |