Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #17  
Old 11-12-2012, 12:35 PM
wardw wardw is offline How to have the location (path) of the Word document on the title bar? Windows 7 64bit How to have the location (path) of the Word document on the title bar? 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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Hyperlinks from Word to specific location in PDF sukanyae Word 0 02-25-2010 04:08 PM
Show Full File Path in Title Bar paulj Excel 3 02-10-2010 07:18 AM
How to have the location (path) of the Word document on the title bar? Convert word document to JPEG. The word document may contain headerfooters vijayaram Word 1 12-30-2009 08:25 AM
Programmatically get File Path for currently opened WORD document franferns Word 1 11-26-2009 12:36 PM
attaching (relative,logical or virtual) path to template word document wissam Mail Merge 0 08-04-2009 05:09 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:19 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft