Using Outlook to Open another Program

A

aftamath77

I would like to open another program when Outlook starts. I'm not very
familiar with Outlook VBA. This is the code I attempted to use, but the
Cisco doesn't open.

Private Sub Application_Startup()

Open "C:\Program Files\Cisco Systems\Cisco Unified Personal Communicator"
For Random As 1

End Sub
 
R

Roady [MVP]

Aside from if what you are doing is correct in terms of VBA, note that
you've only specified a folder and not an application this way.
 
A

aftamath77

This one works, and I changed it to open the executable file instead of the
folder:

Private Sub Application_Startup()

Call Shell("C:\Program Files\Cisco Systems\Cisco Unified Personal
Communicator\CUPCK9.exe", vbNormalNoFocus)

End Sub
 
B

Brian Tillman [MVP - Outlook]

This one works, and I changed it to open the executable file instead of
the
folder:

microsoft.public.outlook.program_vba is the correct group for programming
questions.
 
R

Roady [MVP]

Nope, calling a folder is something completely different as an application.
But I see you've figured it out already.
 
Top