CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2000
    Posts
    58

    Outlook - Please Help!!!

    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.


  2. #2
    Join Date
    Dec 1999
    Posts
    40

    Re: Outlook - Please Help!!!


    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured