Question: this code continues to open a new Outlook. If I'm sending several emails, then I end up with several versions of Outlook open. I know I can close the the session...just check to see if there is a way to open the current session.
Thanks.
Trish
>>Sure you can! Look at this code again...I changed it a bit:
>>
>>nItemType = 10 && 10=Contacts,6=Inbox,9=Calendar,13=Tasks....etc,etc.
>>oOutlook =CREATEOBJECT("Outlook.Application")
>>oNameSpace =oOutlook.GetNameSpace("MAPI")
>>oContacts =oNameSpace.GetDefaultFolder(nItemType)
>>oExplorer =oContacts.GetExplorer
>>oExplorer.Display
>>
>>
>>Just change the item type and a new explorer comes up. Now, if you change what
>>you want to look at, you have to start with GetNameSpace again. Why, I don't
>>know but you do.
>
>Okay, thanks. :) I was getting myself off of my own track I was originally trying to follow. The problem wasn't exactly being able to reference any of the Explorers, but to ADD/CREATE an explorer (especially in the case of [an] Outlook [Explorer] not already running). [unless GetExplorer does not require that there be an "active" explorer?]
>
>Now, in 2000, there is an .Add method (since it is a collection now) which makes this much easier.
>
>Jared M Anderson
>Interactive Data Systems, Inc.
>
janderson@idevgroup.com