开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜