Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello everybody,
I would like to select some sheets and copy them to a different workbook. If I use the following it works fine: .... Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Copy .... But the problem is, that I must have the array in a different way. The sheets, that must be copied, are always different. I need something like: Dim mysheets As ??? .... mysheets(0) = "Sheet1" mysheets(1) = "Sheet2" mysheets(2) = "Sheet3" .... Sheets(mysheets).Select Sheets(mysheets).Copy .... But I don't get it. What kind of variable must I use? Variant doesn't work. Neither does Dim mysheets() As String. Thanks in advance, Stephan -- -- http://www.reparco.com - Die kostenlose, persönliche Startseite |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy all sheets to a new workbook | Setting up and Configuration of Excel | |||
Copy several sheets from one workbook into another at the same tim | Excel Discussion (Misc queries) | |||
selecting a single sheet from a volume of sheets in a workbook | Excel Worksheet Functions | |||
copy workbook sheets? | Setting up and Configuration of Excel | |||
copy a workbook from other workbook with lot of sheets wit... | Excel Discussion (Misc queries) |