Can MS Word 2007 be set up add path/filename to a document by defa

J

jstiglets

I would like to configure MS Word 2007 to add path/filename to documents by
default or if that's not possible, add a button that I could click on that
would do it. MS Word 2007 is cumbersome if you have to go through the
actions to manually do it every time,...it takes 3-4 clicks/selections.

Thanks.
 
R

Robert M. Franz (RMF)

Hello jst
I would like to configure MS Word 2007 to add path/filename to documents by
default or if that's not possible, add a button that I could click on that
would do it. MS Word 2007 is cumbersome if you have to go through the
actions to manually do it every time,...it takes 3-4 clicks/selections.

everything you "need to do every time" is better handled once -- in a
template. Setup a document in the way you like it (with all styles and
information, say, filename fields in the footer) and save it as a template.

In that regard, nothing has changed from earlier versions.

HTH
Robert
 
G

Graham Mayor

You could add the filename/path field to the default template, but I would
urge you not to as it would have repercussions e.g. if you wanted to prepare
labels. The following macro, added to the QAT (Quick Access Toolbar) would
put the filename and path at the cursor position:

Sub InsertFileNameAndPath()
Dim fFname As String
With ActiveDocument
If Len(.Path) = 0 Then
.Save
End If
fFname = .FullName
End With
Selection.TypeText fFname
End Sub

http://www.gmayor.com/installing_macro.htm
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Stefan Blom

You could set up a template which includes the required fields in its
header.

Alternatively, create an AutoText entry with the desired content and then
attach it to a keyboard shortcut, via the Customize Keyboard dialog box. To
add your custom header to the active document, you would then simply
activate the header/footer area (for example by double-clicking the header)
and press the chosen key combination.

Note: To open the Customize Keyboard dialog box, click the Office button,
and then click Word Options. In the Customize category, click the Customize
button.
 

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