ankethaton
New Member
- Joined
- Dec 28, 2005
- Messages
- 5
Hi There,
I need a checkbox which when ticked, makes a worksheet visible and when nt, hides the worksheet.
This is my code but it does not seem to work.
Private Sub Checkbox1_Click()
If CheckBox1.Value = True Then
Sheets("Corporate").Visible = True
Else If
CheckBox1.Value = False Then
Sheets("Corporate").Visible = False
End If
End Sub
Thanks for any inputs on this
I need a checkbox which when ticked, makes a worksheet visible and when nt, hides the worksheet.
This is my code but it does not seem to work.
Private Sub Checkbox1_Click()
If CheckBox1.Value = True Then
Sheets("Corporate").Visible = True
Else If
CheckBox1.Value = False Then
Sheets("Corporate").Visible = False
End If
End Sub
Thanks for any inputs on this