Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can Outlook start a macro when opened?

391 views
Skip to first unread message

MrMason

unread,
Jan 31, 2006, 4:40:27 PM1/31/06
to
I am trying to run a vba/macro routine in Outlook, automatically when I start
Outlook from the scheduler, via a vb.net shell command. If there is a way to
do this I can't find the way. I can start Outlook ok but I can't run the
macro.

I do something similar with Access when starting it from a batch file run by
the scheduler. I use a /x followed by a macro name.

Appreciate your help

Sue Mosher [MVP-Outlook]

unread,
Jan 31, 2006, 5:04:15 PM1/31/06
to
Put any code you want to run at startup into the Application_Startup event handler in the built-in ThisOutlookSession module in OUtlook VBA. You can't run an Outlook macro from an external command.

FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba

--
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


"MrMason" <MrM...@discussions.microsoft.com> wrote in message news:9105B10E-D94D-4421...@microsoft.com...

0 new messages