filepath

A

Adrian

Hi,

In excel, after we add the filepath to the footer, whenever we move the file
into different location, the filepath will update itself. But in Word, the
filepath just stay the same, and I have to manually update the filepath. Is
there a way to make it update itself automatically?

Thanks

Adrian
 
C

Charles Kenyon

Take a look at
http://gregmaxey.mvps.org/File_Name_And_Path.htm.

--
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

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
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.
 
A

Adrian

Wow.. this is brilliant!! thanks very much.

Charles Kenyon said:
Take a look at
http://gregmaxey.mvps.org/File_Name_And_Path.htm.

--
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

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
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.
 
A

Adrian

Hi,
There're some bugs on the code:-

1) When I save the file onto the read-only file, normally, it will pop up a
window and say this is read-only, cannot replace it. But this macro just
create an error, and the debugger pops up.

2) After I pressed "save as", if I cancel out, it also pop up the debugger.

Is there a way to solve these two problems?
 
C

Charles Kenyon

Probably there is, but it isn't my code.
--
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.
 
A

Adrian

Yes, I entered correctly.

Another problem:
I got some templates, have following fields:-
<Name>
<Address>
......
......
<filepath>

After I merged the document, the filepath just become a plain text, so
actually the macro just can't update this filepath field. Is there a way to
get around this?
 
C

Charles Kenyon

The fields converting is a separate issue. This is normal behavior for a
mailmerge.
--
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.
 
Top