Call a macro from VB Script?

  • Thread starter Thread starter Andrew Cushen
  • Start date Start date
A

Andrew Cushen

Hi all-

Quick question:

Is it possible to call a VBA macro or VBA sub/function
from VB Script behind a custom form in Outlook?

If so, how?

-Andrew Cushen
 
Thanks, Ken!

Just curious, how do you feel about the limitations
Microsoft mentions? Would you develop a solution using
this "feature", if you knew it would only ever be used
with Outlook 2000?


-Andrew
==============================
 
Yes, if:

* The macro is in the ThisOutlookSession module
* You call it with Application.MyMacro
* You don't mind using an unsupported technique that might not work at
all in future versions.
 
Only for Outlook 2000, maybe. Generally not. What I do since I write
COM addins extensively is not use macros from form code, I call public
code in my addins instead. That's supported and works in all versions
of Outlook that support COM addins and is much easier to distribute
than macros are.

I expose properties and methods in my addin that I want to call from
form code or from an Outlook property page (.OCX) and that works out
very nicely.
 
Back
Top