Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Mail Item Selection Change

Status
Not open for further replies.

laidbak

Programmer
Jan 8, 2002
1
US
I'm attempting to call a function after each change in selection.

I know there must be an event that fires when I select a new mail message or open or read a mail message.

I tried this:
Private WithEvents olInboxFolder As Explorer

then I used the function:
olInboxFolder_SelectionChange()

This doesn't work. I tried all the functions in the drop down. None seem to get called.

What am I doing wrong?
 
Did you assign your handler to an explorer?

Set olInboxFolder = olApp.ActiveExplorer
or
Set olInbox = olNS.GetDefaultFolder(olFolderInbox)
Set olInboxFolder = olInbox.GetExplorer()

There are some instances where the Selection_changed event doesnt fire, depending on they type of folder. Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top