MarkCBB
Active Member
- Joined
- Apr 12, 2010
- Messages
- 497
HI there,
I am using the following code to open worksheets, but every time I add a new chart ("C_" stands for Chart), i need to update the VBA.
Is there a way to open all worksheets that Begin with "C_" instead of the way that I am doing it?
I am using the following code to open worksheets, but every time I add a new chart ("C_" stands for Chart), i need to update the VBA.
Is there a way to open all worksheets that Begin with "C_" instead of the way that I am doing it?
Code:
Sub OPEN_C()
Sheets("C_Weekly").Visible = True
Sheets("C_CENTRAL").Visible = True
Sheets("C_Best vs. Last").Visible = True
Sheets("C_EASTERN CAPE").Visible = True
Sheets("C_GAUTENG NORTH").Visible = True
Sheets("C_GAUTENG SOUTH").Visible = True
Sheets("C_KWAZULU NATAL").Visible = True
Sheets("C_LIMPOPO").Visible = True
Sheets("C_MPUMALANGA").Visible = True
Sheets("C_Western Cape").Visible = True
End Sub