Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-30-2017, 02:27 PM
macropod's Avatar
macropod macropod 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 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,382
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You might try opening a document. You could also add:
On Error Resume Next
as the macro's first executable line.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 09-01-2017, 10:17 AM
rekeene rekeene is offline How to have the location (path) of the Word document on the title bar? Windows 7 32bit How to have the location (path) of the Word document on the title bar? Office 2010 32bit
Novice
 
Join Date: Aug 2017
Posts: 2
rekeene is on a distinguished road
Default

Thanks Paul. Inserting "On Error Resume Next" on the first line solved the problem :-)
Reply With Quote
  #3  
Old 09-06-2017, 12:18 PM
Jamal NUMAN Jamal NUMAN 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 2010 64bit
Expert
How to have the location (path) of the Word document on the title bar?
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Lightbulb

Quote:
Originally Posted by rekeene View Post
Thanks Paul. Inserting "On Error Resume Next" on the first line solved the problem :-)

I tried the same code below in my Word 2016 and it works fine with no issues.

------
Sub AutoOpen()
'Displays the Document Path in the Title Bar
ActiveWindow.Caption = ActiveDocument.FullName
End Sub
-------------
Attached Images
File Type: jpg Clip_354.jpg (196.2 KB, 15 views)
Reply With Quote
Reply



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 04:50 PM.


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