Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
XL 2003, Windows XP. I have a question regarding moving sheets to a different workbook. Sub Blah() Dim oActiveSheet As Object blah blah blah Sheets("Duplicate").Copy Befo=Sheets("Duplicate") Set oActiveSheet = ActiveSheet oActiveSheet.Move after:=Workbooks("2006.05.30Presentation.xls").She ets(Sheets.Count) End Sub On the last statement, I get a Run-time error '9': Subscript out of range. Where did I go wrong? The other workbooks is named "2006.05.30Presentation.xls". I want to move oActiveSheet from WorkbookA to 2006.05.30Presentation.xls at the very end. Thank you. Best regards, Kevin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Moving Data between sheets in the same workbook and moving data between Workbooks. | Excel Worksheet Functions | |||
moving data between workbook sheets | Excel Discussion (Misc queries) | |||
Moving Sheets within a workbook | Excel Worksheet Functions | |||
Moving sheets to another workbook | Excel Programming | |||
Moving Macros with Sheets to New Workbook | Excel Programming |