Running Macro

G

Guest

Hi,
I created a Macro in outlook 2003 by name "MacroTest"

in Form Code for a button click i want to run that macro....

I am writing form code in VB script ... not vba ...

code looks like this
---------------------------
Dim colInsp

Function Item_Open()
Set colInsp = Application.Inspectors
Call MacroTest
End Function
 
H

Hollis D. Paul

How to call a Macro from VB script code in outlook form

Can any one Help plz..
The Macro must be in the ThisOutlook module, and you just use a call
statement in vbscript in the form code.

Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA
 
S

Sue Mosher [MVP-Outlook]

Like this:

Call Application.MacroTest

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

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



Hollis D. Paul said:
How to call a Macro from VB script code in outlook form

Can any one Help plz..
The Macro must be in the ThisOutlook module, and you just use a call
statement in vbscript in the form code.

Hollis D. Paul [MVP - Outlook]
Mukilteo, WA USA
 

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