A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How can I run a macro from a custom button control



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 20th 06, 10:24 PM posted to microsoft.public.outlook.program_forms
AA
external usenet poster
 
Posts: 4
Default How can I run a macro from a custom button control

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.
  #2  
Old June 20th 06, 10:35 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How can I run a macro from a custom button control

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"AA" wrote in message ...
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.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Macro when user saves Flemming Outlook - Using Forms 7 May 16th 06 01:55 PM
allow me to run macro time initiated hirosh Outlook and VBA 1 April 1st 06 06:40 AM
outlook macro doesn;t run - sub/function not defined mudshark Outlook and VBA 1 February 6th 06 10:04 PM
Outlook 2000 - Button to run Macro then open Database David C Outlook and VBA 1 January 25th 06 03:44 PM
Finding the control ID for the menu button that you want to disabl Tim Bolton Outlook and VBA 1 January 13th 06 06:35 AM


All times are GMT +1. The time now is 03:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.