我有太多子文件夹,以至于当我在 MS Outlook 10 中的所有文件夹中进行搜索时,我不知道电子邮件实际上位于哪个子文件夹中。如何永久将“文件夹中”列包含在搜索结果中?
答案1
您可能会发现这个 VBA 替代方案很有用。它显示文件夹路径并提供切换到该文件夹的功能。
http://www.vboffice.net/sample.html?lang=en&mnu=2&smp=65&cmd=showitem
Public Sub GetItemsFolderPath()
Dim obj As Object
Dim F As Outlook.MAPIFolder
Dim Msg as String
Set obj = Application.ActiveWindow
If TypeOf obj Is Outlook.Inspector Then
Set obj = obj.CurrentItem
Else
Set obj = obj.Selection(1)
End If
Set F = obj.Parent
Msg = "The path is: " & F.FolderPath & vbCrLf
Msg = Msg & "Switch to the folder?"
If MsgBox(Msg, vbYesNo) = vbYes Then
Set Application.ActiveExplorer.CurrentFolder = F
End If
End Sub
编辑器和按钮帮助 -http://www.slipstick.com/developer/how-to-use-outlooks-vba-editor/