Please can someone help?
I have the following code in a workbook of about 35 sheets:
However I generally would only need access to half these, is there a way to exclude certain sheets (in my case Sheets 2-13) named April, May, etc to March)
Thanks in advance for your help.
I have the following code in a workbook of about 35 sheets:
Code:
Sub Workbook_Open()
Dim s As Worksheet
Dim varSelect
Dim i As Integer
i = 0
Sheet1.Activate
Set varSelect = Sheet26.ComboBox1
With varSelect
For Each s In Worksheets
.AddItem s.Name, i
i = i + 1
Next s
End With
ActiveWorkbook.Sheets("Print").Activate
Range("A1").Select
End Sub
However I generally would only need access to half these, is there a way to exclude certain sheets (in my case Sheets 2-13) named April, May, etc to March)
Thanks in advance for your help.