I'm getting a Run time error 91, object variable or block with variable not set message.
My code is :-
I'm assuming I need to declare something as an object but I'm not sure if it is the button or command bar and I dont know how.
The advice is?
Thank you
smiler44
My code is :-
Code:
Private Sub Workbook_Open()
If Sheet1.CheckBox1.Value = True Then
CommandBars("custom 1").Controls("button1").Enabled = False
end if
end sub
I'm assuming I need to declare something as an object but I'm not sure if it is the button or command bar and I dont know how.
The advice is?
Thank you
smiler44