开发者

Getting notes from a folder other than the default one in Outlook VBA

开发者 https://www.devze.com 2023-01-28 12:28 出处:网络
I\'m currently getting notes fro开发者_开发问答m the default folder using the code: Set myNote = Application.GetNamespace(\"MAPI\").GetDefaultFolder(olFolderNotes)

I'm currently getting notes fro开发者_开发问答m the default folder using the code:

Set myNote = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderNotes)

How can I get notes from a different folder?


You have to walk the folder hierarchy, for example if your other Notes folder is one level below the Inbox, the code would be

Set myNote = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Folders("My New Notes Folder Name")
0

精彩评论

暂无评论...
验证码 换一张
取 消