tlc53
Active Member
- Joined
- Jul 26, 2018
- Messages
- 399
Hi there,
I have the following code which runs on every sheet of my spreadsheet and there are 167 sheets in total;
The sheets/tabs are named 3x letters and 2x numbers - eg. ABC01, ZZZ03. To speed it up slightly, I would like to add that if the Sheet name starts with "ZZZ" don't run ClientNarrative, HideRows or PrintSetup, instead stop skip to the next sheet.
Can someone help me write the code that needs to go between, eg. "Sheets(Range("A164").Value).Select" and "ClientNarrative"?
Thank you!
I have the following code which runs on every sheet of my spreadsheet and there are 167 sheets in total;
VBA Code:
Sheets(Range("A164").Value).Select
ClientNarrative
HideRows
PrintSetup
Sheets(Range("A165").Value).Select
ClientNarrative
HideRows
PrintSetup
Sheets(Range("A166").Value).Select
ClientNarrative
HideRows
PrintSetup
The sheets/tabs are named 3x letters and 2x numbers - eg. ABC01, ZZZ03. To speed it up slightly, I would like to add that if the Sheet name starts with "ZZZ" don't run ClientNarrative, HideRows or PrintSetup, instead stop skip to the next sheet.
Can someone help me write the code that needs to go between, eg. "Sheets(Range("A164").Value).Select" and "ClientNarrative"?
Thank you!