Write code for a button on New Form

  • Thread starter Thread starter Brad
  • Start date Start date
B

Brad

Thanks for taking the time to read my question.

I am making a new form, and I have an "Accept" and "Decline" button. Right
now if you click on them nothing happens, as I have no code for them. How do
I assign code to the buttons? Normally if you right mouse click on a control
in design view you can add/assign code to an object. I'd like both buttons to
send the reply, with either "Accepted" or "Declined" in the message body
automatically without the replier having to type anything, just click either
button.

Thanks,

Brad
 
If these are command buttons on the form's design surface, you write code
for their Click event in Outlook's VBScript editor, which you open with the
View Code command. See http://www.outlookcode.com/article.aspx?ID=38 for an
example.

If they are buttons associated with actions on the (Actions) page, the code
needs to go in the Item_CustomAction event hander.
 
Back
Top