Display A New Explorer

T

Terence

Is there a way in Outlook VB to make an explorer when none exists? I need
an explorer so I can simulate clicking the send/receive button for e-mail
sending:

Set oButton = olApp.ActiveExplorer.CommandBars.FindControl(1, 5488)
oButton.Execute

The problem is that if I start outlook in VB - Set olApp =
CreateObject("Outlook.Application") - Outlook doesn't open up visually and
so there are no explorers. Is there a way to either (a) startup outlook
visually or (b) create a new explorer once outlook has been started?

Thanks,
Terence
 
D

Dmitry Streblechenko

Try

set Inbox = Application.Session.GetDefaultFolder(olFolderInbox)
Inbox.Display

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top