ActiveWindow.Caption = ActiveDocument.FullName doesn't work for me
I've tried the macro, per below, but my title bar in Word still doesn't display a path:
Option Explicit
__________________
Sub AutoOpen()
'Displays the Document Path in the Title Bar
ActiveWindow.Caption = ActiveDocument.FullName
End Sub
I'm a total newbie to VB, so please bear with me. My Project Explorer window shows:
Normal
Microsoft Word Objects
ThisDocument
Modules
AutoNew
If I "View Code" for ThisDocument and AutoNew they show the same code, but in ThisDocument the Option Explicit line is not there.
Do I have the code in the wrong place?
|