Hi
Could someone help me with these 2 lines in red;
For the love of me I can't work it out.
Thank you in advance
Could someone help me with these 2 lines in red;
Code:
Dim ws As Worksheet
If CheckBox1 = True Then
[COLOR=#FF0000] If ws.Name Like "*3CT*" Then[/COLOR]
ws.Visible = xlSheetVisible
End If
ElseIf CheckBox2 = True Then
[COLOR=#FF0000] If ws.Name Like "*3CT*" Then[/COLOR]
ws.Visible = xlSheetHidden
End If
ElseIf CheckBox3 = True Then
For Each ws In Sheets
ws.Visible = xlSheetVisible
Next
End If
Unload Me
For the love of me I can't work it out.
Thank you in advance