Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook 2007 Macro - How To Syntax

Status
Not open for further replies.

RonRepp

Technical User
Feb 25, 2005
1,031
US
Hi all:

Can't remember the syntax on running an Outlook Macro from another program.

I have Application.Run, but I'm getting an error.

Any help would be greatly appreciated.

Thanks,

Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.

My newest novel: Wooden Warriors
 
I have Application.Run, but I'm getting an error
Which code ?
Which error ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV:

Trying to run a macro through a VB 6 program.

Because of Outlook's new security, it constantly pops up a message box that you have to "Allow" e-mail for a certain time.

I send out thousands of confirmation e-mails daily, and since moving to 2007, it has been a pain.

However, I can send within Outlook 2007 using a macro. If I setup my "SEND" button on my e-mail form to access this macro, it should be something like this:

MyOLapp.Application.Run "SomeMacro", "Arg1", "Arg2"

But I get an error with the VB program, and when I try it through Outlook 2007.

Thanks,

Ron


Ron Repp

If gray hair is a sign of wisdom, then I'm a genius.

My newest novel: Wooden Warriors
 
AFAIK, there is no Run method in the Outlook.Application object model.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top