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

  • Thread starter Thread starter Ewgenij Sokolovski
  • Start date Start date
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
 
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
-
 
Back
Top