vzachin
06-16-2008, 06:27 PM
hi,
i need to move all sheets except for two sheet name ("Red" & "Brown") into a new book.
with the macro recorder, i have the following:
Sheets(Array("Sheet38", "Sheet37", "Sheet36", "Sheet35", "Sheet34", "Sheet33")).Select
Sheets("Sheet33").Activate
Sheets(Array("Sheet38", "Sheet37", "Sheet36", "Sheet35", "Sheet34", "Sheet33")).Move
Application.WindowState = xlMinimized
Windows("save sheet test.xls").Activate
ActiveWorkbook.Save
how do i create an array for all the sheets that i want to move? they will have different names each time.
thanks
zach
i need to move all sheets except for two sheet name ("Red" & "Brown") into a new book.
with the macro recorder, i have the following:
Sheets(Array("Sheet38", "Sheet37", "Sheet36", "Sheet35", "Sheet34", "Sheet33")).Select
Sheets("Sheet33").Activate
Sheets(Array("Sheet38", "Sheet37", "Sheet36", "Sheet35", "Sheet34", "Sheet33")).Move
Application.WindowState = xlMinimized
Windows("save sheet test.xls").Activate
ActiveWorkbook.Save
how do i create an array for all the sheets that i want to move? they will have different names each time.
thanks
zach