I've created a simple UserForm in my Outlook VBA macro - I can make the form visible using this code:
VBA.UserForms.Add (PasswordForm.Name) PasswordForm.Show (Modal)
...and the *UserForm_Initialize()* event does in fact fire. But clicking on the "Submit" button on the form does nothing - the SubmitButton_Click() event (which was auto-created by double clicking on the button in the designer) never fires. Also, the userform has the usual little red X in the top right corner of the window, but clicking this doesn't do anything (the form doesn't close or exit).
Any idea what I might be doing wrong? I'm quite new to VBA.