Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need to search for data contained on certain worksheets. My current method
is this: dim wks as worksheet For Each wks in ThisWorkbook.Worksheets if wks.name like "Data (*)" and wks.visible = xlSheetVisible ***now I collect my data*** ...... My question is.... I have quite a few pages (15 to 18 min...maybe more) that are hidden, but I have to cycle thru them because they are part of "ThisWorkbook". Although this really does not take much time, I'd like to have a cleaner way. Is there a simple way of creating a collection of only the VISIBLE worksheets in the ThisWorkbook - thus reducing the number of worksheets I need to iterate thru in the "For Each" loop?? Taking it a step further....creating a collection of visible worksheets whose name matches the criteria I define?? Thanks!!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating a collection in a class | Excel Programming | |||
creating a new collection | Excel Programming | |||
When creating a formula how do you select only visible cells | Excel Discussion (Misc queries) | |||
creating a collection of Sheets references | Excel Programming | |||
worksheets collection... find... | Excel Programming |