Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thnaks again.
I now get a different error when i run the simplified code you posted. I get a :- Automation error. The object invoked has disconnected from its clients. Never seen that before?? -- Regards Corey "Ken Puls" wrote in message ... 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 |