Open Outlook mail Item using EntryID, StoreID, and / or PR_ENTRYID

前端 未结 2 1216
别跟我提以往
别跟我提以往 2021-01-05 05:08

NOTE: I\'m using VBA and Office 2007. (I would use C#, but the project parameters don\'t allow this)

I\'m attempting to find some method in Outlook, or an API, that

2条回答
  •  天涯浪人
    2021-01-05 05:51

    For C#:

    var ns = OutlookApp.GetNamespace("MAPI");
    var item = ns.GetItemFromID(entryId) as MailItem;
    

    Where OutlookApp has Microsoft.Office.Interop.Outlook._Application type.

提交回复
热议问题