Clicking on the inbox folder of my outlook account or the displaymethod of MAPIFolder

E

Ewgenij Sokolovski

Hello, All. Currently, I am programming a tool which is supposed to
set a group of outlook settings programmatically. For that purpose I
simulate manual clicking through the Outlook with my program code.
Now, I encountered the following problem:

I want to "click" on the Inbox symbol in my Outlook folder bar.
Currently I do that this way:

FpApp := CoOutlookApplication.Create;
FpApp.GetNamespace('MAPI').GetDefaultFolder(olFolderInbox).Display;

However, this command opens a new Outlook window with clicked Inbox
folder. But I want to click in the window that already exists! Not in
a new one. Is there any possibility to do that? Otherways, all the
settings I set in the new window are lost after my program terminates:
((

BR
Ewgenij
 
D

Dmitry Streblechenko

Set the Application.ActiveExplorer.CurrentFolder property to the folder that
you are trying to 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

Top