Sunday, June 12, 2011

Jump To Document Folder

You've just saved your file, or you are wondering about another file in the same folder, so you need to open Windows Explorer and work your way through the trees to your folder.
That would be Alt-Tab to Explorer (or Start, Run, explorer.exe), click, double-click, click etc.
Use the little macro below

Public Sub JumpToDocumentFolder()
''' Launch Windows Explorer into the current document's folder.
Call Shell("explorer.exe /e," & ActiveDocument.Path, vbMaximizedFocus)
End Sub

No comments:

Post a Comment