Full file names

R

Reggie

Is there a way to have Word show the full file name of a document (full
address) when I am working on the document. I can set windows 98 so show the
full name in Windows explorer.
 
G

Greg Maxey

Reggie,

You can put the following line of code in a template AutoNew and AutoOpen
Macro:


ActiveWindow.Caption = ActiveDocument.FullName

E.g.,
Sub AutoOpen()
ActiveWindow.Caption = ActiveDocument.FullName
End Sub
 
L

Lyn

Hi Reggie,
There is an "Address" field in the Web toolbar. If you have the Web toolbar
displayed, you will see the document path and name in the Address box.

If you don't want the whole Web toolbar always displayed, you can customize
any other toolbar that has sufficient space by adding just the Address
field. In fact, on my PC I have put the Address field on the Menu bar (to
the right of the Help menu item). You can also extend the length of the
field to cope with those long path and document names.

To customize:

1) Right click on any blank spot on a toolbar.
2) Select Customize...
3) On the Customize dialog, select the Commands tab.
4) Select the "Web" Category and then scroll to the "Address:" item in the
Commands list.
5) Click on the Address: item and drag it to an empty spot on one of your
normal toolbars (or the Menu bar as in my case). Slide along to the end of
the rightmost item until the cursor turns into a bold "I" beam, then release
the mouse button.
6) The field just added should have a bold border at this stage. To change
the length of the field, move the cursor over the right end of the border
(cursor should change to a double-headed arrow). Drag the end to get the
length you require. (I use all the available space at the end of the Menu
bar.)
7) When finished, close the Customize dialog box.

HTH,
Lyn.
 
L

Larry

There's one problem with changing the caption in the title bar. If the
caption has been changed, and if the SaveAs command is then run, the
caption will not show the correct new name but instead stick to the name
of the document on which new document is based.

To cope with that, you need to create a macro which replaces and
modifies the built-in SaveAs command as follows. It simply gives the
command to display the full name. (I have my own preferences in here
which you don't need. The first line moves the focus to the folder
window in the dialog box. If you don't want that you could delete the
first line.)

Sub FileSaveAs()

SendKeys "+{TAB}"
Dialogs(wdDialogFileSaveAs).Show
System.Cursor = wdCursorNormal
ActiveWindow.Caption = ActiveDocument.FullName

End Sub

Larry
 
R

Reggie

Great idea!!!!

reg
Lyn said:
Hi Reggie,
There is an "Address" field in the Web toolbar. If you have the Web toolbar
displayed, you will see the document path and name in the Address box.

If you don't want the whole Web toolbar always displayed, you can customize
any other toolbar that has sufficient space by adding just the Address
field. In fact, on my PC I have put the Address field on the Menu bar (to
the right of the Help menu item). You can also extend the length of the
field to cope with those long path and document names.

To customize:

1) Right click on any blank spot on a toolbar.
2) Select Customize...
3) On the Customize dialog, select the Commands tab.
4) Select the "Web" Category and then scroll to the "Address:" item in the
Commands list.
5) Click on the Address: item and drag it to an empty spot on one of your
normal toolbars (or the Menu bar as in my case). Slide along to the end of
the rightmost item until the cursor turns into a bold "I" beam, then release
the mouse button.
6) The field just added should have a bold border at this stage. To change
the length of the field, move the cursor over the right end of the border
(cursor should change to a double-headed arrow). Drag the end to get the
length you require. (I use all the available space at the end of the Menu
bar.)
7) When finished, close the Customize dialog box.

HTH,
Lyn.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top