WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE and Outlook
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Launch Outlook and Make Visible

 Keywords:  Launch Run Outlook Make Disible Visible

Question:

Desire to launch Outlook and leave it running, version independent so not using Run(). Thought of OLE. What else would be required further to:
oOL = createobject( "outlook.application" ) 
exit
The above doesn't leave Outlook running.

Answer:

Doesn't look like the Outlook object model supports a 'visible' property. Looks like you will need to use the Display Method: http://msdn.microsoft.com/en-us/library/aa220090(v=office.11).aspx

olFolderInbox = 6
oOL = ObjectCreate("Outlook.Application")
oNameSpace = oOL.GetNamespace("MAPI")
oFolder = oNameSpace.GetDefaultFolder(olFolderInbox)
oFolder.Display
oOL = 0

Article ID:   W18091
Filename:   Launch Outlook and Make Visible.txt
File Created: 2012:06:19:10:37:10
Last Updated: 2012:06:19:10:37:10