Running Macro

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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
 
Back
Top