Update fields in a macro

S

Sol Apache

Hello

I have created a macro which includes a step to update fields, but it does
everything but update the fields. Within the macro I have put the cursor
within a field to be updated, and selected some of the text but this does
not work.

My macro is recorded and I am wondering if there needs to be another way of
expressing the field update command within a macro.

Thanks for any help
 
J

John McGhie [MVP - Word and Word Macintosh]

Sol:

ActiveDocument.Fields.Update

You don't need to do anything else: don't even bother selecting anything:
that command updates all of the fields in the main text story regardless of
where the selection is.

If you are trying to update "specified" fields, get back to me.

Regards

Hello

I have created a macro which includes a step to update fields, but it does
everything but update the fields. Within the macro I have put the cursor
within a field to be updated, and selected some of the text but this does
not work.

My macro is recorded and I am wondering if there needs to be another way of
expressing the field update command within a macro.

Thanks for any help

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 4 1209 1410
 

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