How can I run a macro from a custom button control

A

AA

Hi Experts,

I need to run a macro from a button control in a custom form. I tried to
call the macro from click script code event but it didn't work. What can I do?

Thank you so much for your help.
 
S

Sue Mosher [MVP-Outlook]

Put the macro in the ThisOutlookSession module in VBA. You should then be able to call it as Application.MyMacro from your form code.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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