RobbieC
Active Member
- Joined
- Dec 14, 2016
- Messages
- 376
- Office Version
- 2010
- Platform
- Windows
Hi everyone, this is my first post here and I am a relative newbie with Excel VBA. I am primarily a php programmer, but I have been asked by my company to put together and develop a rather complex spreadsheet. I have the feeling that I will be asking quite a few searching questions on this forum, so please bear with me....
Firstly, I'm trying to get a checkbow to tick/untick depending on a value in another cell on the same (active) worksheet. My checkbox is 'Check Box 1' and I inserted it as a 'Form Control' not 'ActiveX' item:
but nothing happens. Am I missing something?
Thanks for your time in advance
Regards
Rob
Firstly, I'm trying to get a checkbow to tick/untick depending on a value in another cell on the same (active) worksheet. My checkbox is 'Check Box 1' and I inserted it as a 'Form Control' not 'ActiveX' item:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.CheckBoxes("Check Box 1").Value = IIf(Range("AU13").Value = "SPT", True, False)
End Sub
but nothing happens. Am I missing something?
Thanks for your time in advance
Regards
Rob