Click to See Complete Forum and Search --> : Outlook - Please Help!!!


uni
October 15th, 2001, 10:17 PM
Hi,

How do you access the text within an active new message window. In the following code appoutlook which is declared as outlook.application has allowed me to refernce the current instance of outlook, now all I need to know is how to get this line of code to access the text in the window.

AppOutlook.GetNamespace("mapi")

Thanks.

nilaish
October 29th, 2001, 03:04 PM
Set olApp = Application
Set olSession = olApp.GetNamespace("MAPI")

Set olStartFolder = olSession.PickFolder

Set folsFolders = olStartFolder.Folders.GetFirst

Once you have the right folder that you want to traverse through. Open the item (Messages) from that folder and you will be able to get the body text from the messages.

For more information look at the following books:

Building Applications with Microsoft Outlook 2000
Author Randy Byrne

there are books from Microsoft about Outlook programming too for Outlook 97/98/2000

Nilesh Mehta
Outlook/Exchange Developer