View Single Post
 
Old 11-12-2012, 12:35 PM
wardw wardw is offline Windows 7 64bit Office 2007
Advanced Beginner
 
Join Date: Oct 2012
Posts: 65
wardw is on a distinguished road
Default 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?
Reply With Quote