I am very new to vba and I am trying to get my first bit of VBA code to run, I have added a button to a form. I then opened the on click event and placed
Private Sub run_Click()
MsgBox "hello World"
End Sub`
into the module but when I go back into the form and click the button in form view nothing happens, I am doing something wrong, i have tryed to run lots of other sniptes of code but nothing is working, I am kinda unsure how I actaully "run" the code.
I Click run then I get this
I have gone to the trust centre and Enabled Macros and still I get this error ??
// This issue has been solved my marcos were not enabled in the trust centre
Private Sub CommandButton1_Click() MsgBox "hello World" End Sub
– user2140173