View Single Post
 
Old 09-06-2017, 12:18 PM
Jamal NUMAN Jamal NUMAN is offline Windows 7 64bit Office 2010 64bit
Expert
 
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