How to make Filename and path change automaticly in the Header

R

Remote Resolution

I have been attempting to get the Filename and path in Insert AutoText in the
Header/Footer settings change the filename/path when moving
(cut/copy/drag-n-drop, ect...), the .doc file around various folders on my
PC. The only way that I can make the filename/path change is to highlight the
filename/path, and then press F9, and it will change. I have updated both my
Windows and Office service packs to Service Pack 2. But, still it doesn't
work. What is frustrating is that I have 2 other users that sit around me,
that the filename/path changes automatically on their machines. I've gone
through and tried to do a side-by-side comparison with their settings and I
couldn't see any obvious differences. It makes it even more frustrating
knowing that what I want to do is possible, but have been unable to find the
resolution the problem. Any assistance or recommendations would be greatly
appreciated....
 
T

Tony Jollans

I don't entirely understand what you're saying but most fields in documents
do not automatically update.

Fields in Headers and Footers, however, are more responsive than those in
the main body of a document.

If you print the document they will be updated on the printed version.
If you switch to normal view and back to print layout view they will be
updated on screen
 
R

Remote Resolution

Greg,

Thanks for the link, there was some useful information in this link that I
could definitely use, but unfortuanantly it does not resolve what I'm looking
accomplish.

The link makes mention of how to write a macro so that the File and Path in
the Title bar matches up with the File and Path in the document.

But, what I'm looking to make happen is for the File and Path in the Header
to change automaticly when move the document from one folder to another.

The 2 other PC's that I've seen this work on do not have any macros, but
it's extremely frustrating knowing that this is a possibility, but the users
of these machines have no idea why it works on their machines and not mine.

Anything that you could suggest would be appeciated....

Jeff
 
R

Remote Resolution

Tony,
I'll see if I can clairify what I'm looking to accomplish.

What I'm trying to do is to have the File and Path in the Header change to
show the correct File and Path, when I move the document to various folders
on my PC.

The only way that I can get it to change is manually (pressing F9 on the
highlighted File and Path in the Header or highlighting the File and Path in
the header and then right-clicking on the File and Path and selecting
'Update') or Go to the File/Print/Options/Print Options, and then checking
the box 'Update Field'. By do this it changes the File and Path when the
document prints.

What is frustating is that I've seen it work on 2 other PC's, but the users
are not sure why it works on their PC's and not mine.

Any other thoughts or suggestions you may have to offer would be greatly
appreciated....

Jeff
 
G

Greg Maxey

Jeff,

I doesn't do that on my PC either. I don't know what to tell you. You
might consider slipping in after hours and swapping PCs ;-)
 
R

Remote Resolution

Greg,

I will definite consider this in the back my mind as "Plan B". You will
cover my bail - Right? LOL...

Certainly appreciate you at least taking a crack at trying to come up with a
solution. I'm going to keep plugging away one, to figure it out. In most
cases I wouldn't be this determined, but seeing it work on other machines
just drives me nuts not knowing why it's not working on either of our
machines. It's got to be some setting that's buried deep, and I just haven't
come across it just yet....

Thanks anyway...
Jeff
 
G

Greg

Jeff,

Well it isn't madness. I just tried same test I ran last night using
Word2003 at home (field did not update) here at work with Word2000 and
the field did update as you describe.

I saw a KB article one time explaining what fields update on different
events. Can't relocate it.

Do you have Word2000 on all machines in question?

You can try this. Open a new blank document on a machine that is doing
what you want to happen. Tool>Macros>Record New Macro. Call the macro
whatever you like but select "store in Document1.doc" click OK

Next click Tools>Options and just click on each of the option tabs.
After you have click on the last tab click the OK button then stop the
recorder. This will produce a macro of all the user setting on that
machine. Save and close the document

Transfer the document to your machine and run it to set your user
settings to the same as the other machine (I know that you said you did
this manually, but people make mistakes, right).

If that doesn't work. I am stumped.
 
J

Jay Freedman

The KB article is http://support.microsoft.com/kb/832897/. The answer to the
trick question is that the behavior changed in Word 2002. The reason given
in the KB article is completely bogus -- I'd love to know the real reason
they thought they had to screw up everyone's documents.
 
G

Greg

Thanks Jay! Have you ever heard of the "Shell answer man?" ;-)

Jeff,

You must be in upper management and got the new toy before the rest.
Maybe that after hours computer swap won't be so egregious after all.
After all the victim is getting a newer version of Word.
 
C

Charles Kenyon

Follow up on Greg Maxey's link again. It has to do with text in the document
header, too! See Step 9 and following.

There is _no_ way that this field updates automatically upon open or save
without macros. However, if you do a print preview or print and have your
document set to update fields on printing, it will update then. This may be
what the other users are experiencing.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
J

Jack_Feeman

Hi Remote,
Don't know if you ever got this solved, but in case you didn't. I solved a
similar issue with:

Sub UpdateFields()
' UpdateFields Macro
' Macro recorded 10/3/2006 by Jack Feeman
'
' Selection.WholeStory
' Selection.Fields.Update
' Selection.MoveRight
Dim pRange As Word.Range
Dim pShape As Word.Shape

On Error Resume Next
For Each pRange In ActiveDocument.StoryRanges
Do
pRange.Fields.Update
For Each pShape In pRange.ShapeRange
pShape.TextFrame.TextRange.Fields.Update
Next
Set pRange = pRange.NextStoryRange
Loop Until pRange Is Nothing
Next
On Error GoTo 0

End Sub

and assigned it to a button "Update fields" which in turn updates all the
fields in the document (Header and Footer included) when clicked. Assuming
the your header entry is the Word field "Filename" with the "/p" option
(FILENAME \p ) this should work. You can also assign this macro to the menu
bar if you do not want to assign it to a tool bar.

Hope this helps
Jack
 

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