List of open/active mailitems

K

Kim Jakobsen

Hi All

I need to make a reply to a mailitem in the users inbox, and would like to
give the user a list of mails, to select the mail to reply to.

Normally I would go through the inbox, and just make a list of mails there,
but since some users have a lot of mails in the inbox, I would prefer to
just list the mails that the user currently reading (are open).

I looked at the mailitem object, and i does not seem to have a property
that tells me that it is open.

Is it possible to get a list of open items, either by traversing through
the inbox, selecting the open ones, or another way?

regards
Kim
 
L

Lars Sæther

Take a look at the Inspectors collection of the Application object.

You would be able to access all open items through something like

Dim index as Integer
For index = 1 to olApp.Inspectors.Count
MsgBox olApp.Inspectors.Item(index).CurrentItem
Next

/lars
 

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