Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Apologies to all, as this may be blindingly obvious, but I'm having problems
getting my head around Excel's arrays. What I need to happen (in an XML macro on Excel 2003) is to delete several (~100) worksheets. Simple you (and Microsoft Excel Macro Functions Help) say use SET.NAME(): "If you need to return an array to a macro sheet (for example, if the macro needs a list of all open windows), assign a name to the array instead of placing the array information in a range of cells." Then use WORKBOOK.DELETE(): "If you want to delete Sheet1:Sheet10, you must select them first with WORKBOOK.SELECT(). You can also place the sheets in an array first, as in {"Sheet1", "Sheet2", "Sheet3",...}." My rather basic question is how do I place the sheets in an array without of placing the array information in a range of cells and then assign a name to this array worksheet names into an array? The worksheet structure is typically: 1st worksheet: "Contents" - without "s of course 2nd: "(A Summary)" 3rd: "(All)" 4th to 4th from last: location based names, so don't follow any pattern 3rd from last: "z_Progress Breakdown" 2nd from last: "z_Summary" last: "z_Upload Set" many (anticipatory) thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro formula array return limits? | Excel Programming | |||
How can I indicate in a macro to which last sheet to return ? | Excel Programming | |||
Macro to return to Current Sheet and Cell | Excel Programming | |||
Return to Current Sheet in On (sheet activate) event macro | Excel Programming | |||
Return an array of all page ranges in a sheet? | Excel Programming |