Hi Developer network,
I have a problem in a MS Publisher file, where my Userform is not behaving as intented. I have linked to the file here as well. The button on my userform works great when I have "Visual Basic" open, but If I just try to execute the macro, which open up the form, the button are not working.
My code is the following for reproducing the issue.
Public Sub OpenForm() UserForm1.Show End Sub Private Sub CommandButton1_Click() MsgBox "how" End SubThe CommandButton1 is located in the UserForm file.
Link to basic file: http://folmer-it.dk/stackoverflow/template_v2_09_07_2018.pub
I have the following references, standard when creating a new form.
I have tried this link:
https://support.microsoft.com/en-gb/help/308340/how-to-check-and-remove-incorrect-project-references-in-the-visual-bas
But this is not possible on the Publisher project, because of the missing VBProject part of the document.
Any help will be very appreciated.
Best Regards
Lars Folmer-Petersen
Lars Folmer-Petersen