A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Run external program from Outlook VBA macro



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old October 8th 09, 08:50 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Run external program from Outlook VBA macro



In VB6 you can have either a COM application with a creatable, public object
(the root object often is called Application), or a standard exe, which can
be launched with the Shell function.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Wed, 7 Oct 2009 11:48:21 -0700 schrieb Marvin Buzz:

It is a self-written program written in Visual Basic.

"Michael Bauer [MVP - Outlook]" wrote:



For the Application_Startup there's a sample in the VBA help file.

What program do you try to automate, does it offer an object model (like
Outlook, Word etc.) that you can use?

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Wed, 7 Oct 2009 06:18:02 -0700 schrieb Marvin Buzz:

Could you provide a sample please?

"Michael Bauer [MVP - Outlook]" wrote:



1) Depending on the program, the CreateObject function might work for

you.

2) See the Application_Startup event.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Tue, 6 Oct 2009 16:06:01 -0700 schrieb Marvin Buzz:

I would like to run an external program from within a macro in Outlook
VBA.
I need some sample code to get to the program.

Also, is there a way to have an Outlook macro run each time Outlook is
started?

Thanks.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Activate macro on External Outlook add on guyy Outlook and VBA 4 July 2nd 08 08:52 AM
External Program to send via Outlook permanently FPO703 Outlook - Installation 16 February 5th 08 03:03 PM
External program/file/task opening/running from Outlook Calendar alex Outlook - General Queries 0 September 10th 07 04:32 AM
How to execute an external program instead of openning the form when opening an inspector Lucas Campos[_2_] Outlook - Using Forms 1 August 13th 07 10:42 PM
Associate and view an email to a external program and db Andrea Add-ins for Outlook 1 June 5th 07 11:45 PM


All times are GMT +1. The time now is 03:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.