Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry, I just looked at the line you said you errored on. Your code had
an issue higher up that should have errored out. There is no such object as "activeworksheet". You'd need to change that to ActiveSheet. Regardless, it isn't necessary to select each item all the time. Try this shortened version of your code: Sub TimeSheets() Sheets("AAA").Range("A1:U41").Insert Sheets("ZZZ").Range("a1:u41").Copy Sheets("AAA").Range("A1").PasteSpecial Paste:=xlPasteAll End Sub Ken Puls, CMA - Microsoft MVP (Excel) www.excelguru.ca Corey wrote: Thanks for the reply. I am trying the : Range("A1").PasteSpecial Paste:=xlPasteAll code but i still seems to get the same error.??? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
PasteSpecial Error 1004? | Excel Discussion (Misc queries) | |||
PasteSpecial Method Error | Excel Discussion (Misc queries) | |||
PasteSpecial error handling | Excel Programming | |||
PasteSpecial error | Excel Programming | |||
PasteSpecial Error | Excel Programming |