Automatically rename fields ?

P

pingos

I need to programatically rename DOCVARIABLE field within word document -
any suggestions how to do it ?

I do have a collection of Word templates that have been created for an older
application, and since then manufacturer changed output field names so I need
my templates to match this new naming convention and would like to do it
automatically to make sure that nothing is missed.

Any help is appreciated.
 
C

Charles Kenyon

Here are a couple of starting references, but note that you have the added
complexity of replacing language in fields so you would want to be
displaying field codes. (Note, be sure to set this back after you run your
macro!) Also, this fixes the fields, it does not do anything with the
variables themselves.
http://word.mvps.org/FAQs/MacrosVBA/BatchFR.htm
http://word.mvps.org/FAQs/MacrosVBA/FindReplaceAllWithVBA.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


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

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