Write code for a button on New Form

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
 
S

Sue Mosher [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top