Hello,
How can I make this macro easier (smaller)? The same action is performed on an array of sheets (not all sheets).
Please Login or Register to view this content.
Hello,
How can I make this macro easier (smaller)? The same action is performed on an array of sheets (not all sheets).
Please Login or Register to view this content.
Last edited by magicool; 02-03-2010 at 11:24 AM.
Perhaps:
Please Login or Register to view this content.
(if the sheet names are all numeric and sequential you could just use a numeric loop rather than a Sheets Array)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Thank you! It is perfect.
The sheet names are all numeric and sequential. How to use a numeric loop? Also is it possible to use that on a range of sequential sheets (regardless their names)?
If we assume the sheet names are sequential and numeric then:
If the names were themselves not numeric but the sheets were in sequence physically in the file (eg first 9 sheets) then you can use the number as the Index position - ie remove the ""& from the With statement.Please Login or Register to view this content.
Thank you! This is very fast!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks