• Word document title (W97 and W2K)

    Author
    Topic
    #361057

    Is there a way to make list the entire path as well as the name of a document in the title bar? Along the lines of how you can choose to display it in windows explorer …

    I ask because I have to deal with multiple copies of templates for our users and it’s all too easy to get confused as to which directory’s copy of a particular template you’re looking at – and since there’s all that lovely space across the title bar not being used it would be nice …

    Many thanks in advance for any help cheers

    Viewing 1 reply thread
    Author
    Replies
    • #545059

      Beryl,
      Open the document in question and select Alt+F11
      On the left of the VBE (visual basic editor) window you should see the project explorer window (if not, select Ctrl+R)
      In this window select This document and press F7
      In the code window on the right (maximise if necessary) select Document (under General) and Open from the right selection box.(when you first select general it may put you in the New-document sub-procedure)
      Add the following code as necessary:

      Private Sub Document_Open()
      Application.Caption = Application.Path & ” ” & ActiveDocument.Name
      End Sub

      The existing limits of Private Sub Document_Open() and End Sub should already have appeared.
      Save the document and next time it opens you should have the path and filename in the title bar.
      (Although it does flag up macro warning each time you open the doc)
      Hope this helps.
      Regards
      Alan
      UK
      Cheshire

    • #545120

      OK, I error’d bash.
      Sorry Beryl, and much thanks for pointing out error in subsequent post.
      OK, so instead of placing the path and filename in the title bar, (and risk not having it work for activewindow), why not include path as part of the header and change font to hidden? Unless the user has hidden text to print such as in track changes then you’ll have the path at the top of each page.
      Just a thought.
      Alan

      p.s. Is it me, or is Word one of the best strategy games you’ve played as well?

      • #545131

        Thanks to both of you – I have used a combination of both your suggestions (along with some from another thread) and AutoNew, AutoOpen, AutoSave and AutoClose macros and it all seems to work!

        Incidentally, I had found the web address bar, but I didn’t know how to resize it and since some of my paths are pretty long, when it put the … in to indicate other directories it always seemed to do it at the directory level I needed to refer to! So many thanks for the note on resizing that, too!

        cheers

        • #545185

          Beryl,
          final word(?), I correct my original post with:

          activedocument.fullname

          to show path and filename of the actual document and not the application program
          Alan
          UK
          Cheshire

    Viewing 1 reply thread
    Reply To: Word document title (W97 and W2K)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: