Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
how can I assign a large number of named sheets to an array variable
(varArray). In otherwords if I have a collection of large number of named worksheets like "ASD","XZC","BNM",.......etc. I want to assign them to the array variable varArray, like; varArray = "ASD","XZC",...... Then I want to use it in the following statement : For each asheet in activeworkbook.sheets(varArray) Please notice that : -I want to limit the search to limited number of sheets of the activeworkbook, but the number of these sheets are relatively large ( more than 20 sheets). -I want to assign the sheets to the varArray in one seperate line, so that I can increase r decrease the number of sheets anytime -The activeworkbook contains many sheets, but I want to limit the search ( Done by For ...each )to a certain number out of the total sheet number. -Are there a limit to the number of sheets used with the statement for... each? - I am using Excel 2003 and Excel 2007. Thank you -- Nabil A Youssef |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rapidly Create a Large Number of Named Ranges | Excel Worksheet Functions | |||
sum a large number of worksheets | Excel Discussion (Misc queries) | |||
How do i assign the ActiveWorkbook.Worksheets to a worksheets object? | Excel Programming | |||
Data sorting over a large number of worksheets | Excel Worksheet Functions | |||
Assign named ranges | Excel Programming |