我需要按名稱獲取文件夾,而不是按文件夾數量計數。我嘗試了各種方法。按名稱引用文件夾
Dim olApp As Outlook.Application
Dim objNS As Outlook.NameSpace
'Dim OlFolder As Outlook.MAPIFolder
Dim objFolder As Outlook.Folder
Dim myolItems As Outlook.Items
Set olApp = Outlook.Application
Set objNS = olApp.GetNamespace("MAPI")
'Set myOlItems = objNS.GetDefaultFolder(37).Folders("Vijay Baswal").Items
'Open the folder
Set objFolder = olApp.Session.GetDefaultFolder("Vijay Baswal")
我寫了一篇關於在Outlook中訪問響應前面一個問題開始的文件夾信息的詳細教程。請參閱http://stackoverflow.com/a/8699250/973283。 –
該文件夾的完整路徑是什麼? – JimmyPena