Hi,
I have a file with multiple worksheets (tabs). The checkboxes can be filled in one sheet, and are also visible on another. But on this other tab, they may not be altered! I have code like this:
Sub CheckBox3_Click()
'ga film
Worksheets("Products").Select
Range("b13").Select
If ActiveSheet.Shapes("Check Box 3").ControlFormat.Value = True Then
MsgBox "Checked! Changes only allowed by Branch Office."
ActiveSheet.Shapes("Check Box 3").ControlFormat.Value = False
Else
MsgBox "Unchecked! Changes only allowed by Branch Office."
ActiveSheet.Shapes("Check Box 3").ControlFormat.Value = False
End If
End Sub
It never seems to read the first "if", it always goes straight to the "Else" condition. Can anyone please help? Thanks!!! Kitty
I have a file with multiple worksheets (tabs). The checkboxes can be filled in one sheet, and are also visible on another. But on this other tab, they may not be altered! I have code like this:
Sub CheckBox3_Click()
'ga film
Worksheets("Products").Select
Range("b13").Select
If ActiveSheet.Shapes("Check Box 3").ControlFormat.Value = True Then
MsgBox "Checked! Changes only allowed by Branch Office."
ActiveSheet.Shapes("Check Box 3").ControlFormat.Value = False
Else
MsgBox "Unchecked! Changes only allowed by Branch Office."
ActiveSheet.Shapes("Check Box 3").ControlFormat.Value = False
End If
End Sub
It never seems to read the first "if", it always goes straight to the "Else" condition. Can anyone please help? Thanks!!! Kitty