Hello all,
I'm new to this forum. Any help is greatly appreciated.
I am trying to create a VBScript for custom forms in Outlook 2016. I have a Command Button created in the form, and the test code associated with it is shown below.
Function CommandButton1_Click
MsgBox "Hello"
End Function
I have no problem running this code in "Run This Form", but after I try to send this email to myself, I click on the button but there was nothing happened. It seems like the code was not executed when I press the button. Could you please tell me where I went wrong? Thank you.
I'm new to this forum. Any help is greatly appreciated.
I am trying to create a VBScript for custom forms in Outlook 2016. I have a Command Button created in the form, and the test code associated with it is shown below.
Function CommandButton1_Click
MsgBox "Hello"
End Function
I have no problem running this code in "Run This Form", but after I try to send this email to myself, I click on the button but there was nothing happened. It seems like the code was not executed when I press the button. Could you please tell me where I went wrong? Thank you.