How to fix run time error 424 when accessing the value of a CheckBox in Excel VBA?
问题 Okay so here is the problem: In my user form, I have 2 checkboxes. I want to be able to use the value of the checkbox to perform a certain job. Example: Sub main() UserForm1.Show If UserForm1.CheckBox1.Value=True Then MsgBox("Awesome") End If End Sub Now my problem with this is that it keeps giving me run time error 424. Can anyone help me with this? Your help is greatly appreciated. Thank you. Update: Sub main() UserForm1.Show If UserForm1.CheckBox1.Value=True Then Worksheets(1).Activate If