Outlook Object model

Last post 05-29-2007 2:48 AM by Jessica Cao - MSFT. 1 replies.

Sort Posts:

  • Outlook Object model

    05-24-2007, 7:25 AM
    • Member
      673 point Member
    • mike72
    • Member since 05-02-2005, 12:28 AM
    • Posts 217

    I have just switched from Outlook 10 to Outlook 11, and some of my code is breaking as a result.

    1) if (col.Item(i) is Microsoft.Office.Interop.Outlook.MailItem)

    'No definition for 'Item''

    Microsoft.Office.Interop.Outlook.MailItem oMsg = (Microsoft.Office.Interop.Outlook.MailItem)col.Item(i);

    'No definition for 'Item''

    Microsoft.Office.Interop.Outlook.Recipient oRecipient = oMsg2.Recipients.Item(1);

    'No definition for 'Item''

     I have tried replacing for example col.Item(i) with col[i] but without any success.  If anybody could help me out here it really would be appreciated.

     

  • Re: Outlook Object model

    05-29-2007, 2:48 AM
    Answer
    Jessica Cao
    Sincerely,
    Microsoft Online Community Support


    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (2 items)