Field Codes

G

Guest

For work, I am trying to create a Word template. In the cover sheet of the
template, I have a variable/bookmark labelled '[Enter System Name]'. This
variable appears throughout the body of the document. I want to create a
macro or a field code such that when someone assigns a value to '[Enter
System Name]' (on the cover sheet), all other variables (in the body of the
document) are updated automatically. The keyword is AUTOMATICALLY. Is this
possible in Word?

Currently, I am using bookmarks and field codes (SET, FILLIN, REF), but the
updates have to be updated manually. Basically, I have to select the Toggle
Field Code wherever the { REF SystemName } field code appears. Is there a
more efficient way of implementing this problem. Thanks.
 
S

Suzanne S. Barnhill

I have done this with StyleRef fields. I insert my MacroButton field using a
specific character of paragraph style, then repeat the info elsewhere using
a StyleRef field.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
C

Charles Kenyon

Suzanne gave you what is probably the simplest and most elegant method. For
others, see http://gregmaxey.mvps.org/Repeating_Data.htm. Often what will
work for updating REF fields, though, is Ctrl-A, F9.

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

Guest

Thanks for the response. Can you please explain your solution in more
detail? When I create the MacroButton, should I select a specific type of
macro from the available list (or do I need to create a macro)?

Suzanne S. Barnhill said:
I have done this with StyleRef fields. I insert my MacroButton field using a
specific character of paragraph style, then repeat the info elsewhere using
a StyleRef field.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

WordUp said:
For work, I am trying to create a Word template. In the cover sheet of the
template, I have a variable/bookmark labelled '[Enter System Name]'. This
variable appears throughout the body of the document. I want to create a
macro or a field code such that when someone assigns a value to '[Enter
System Name]' (on the cover sheet), all other variables (in the body of the
document) are updated automatically. The keyword is AUTOMATICALLY. Is this
possible in Word?

Currently, I am using bookmarks and field codes (SET, FILLIN, REF), but the
updates have to be updated manually. Basically, I have to select the Toggle
Field Code wherever the { REF SystemName } field code appears. Is there a
more efficient way of implementing this problem. Thanks.
 
S

Suzanne S. Barnhill

I use a NoMacro MacroButton, as described at
http://word.mvps.org/FAQs/TblsFldsFms/UsingMacroButton.htm (you can see
examples of these in the fax cover sheet templates that ship with Word).
From the formatting of "[Enter System Name]" I assumed that's what you were
using as well. For more on StyleRef fields, see
http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

WordUp said:
Thanks for the response. Can you please explain your solution in more
detail? When I create the MacroButton, should I select a specific type of
macro from the available list (or do I need to create a macro)?

Suzanne S. Barnhill said:
I have done this with StyleRef fields. I insert my MacroButton field using a
specific character of paragraph style, then repeat the info elsewhere using
a StyleRef field.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

WordUp said:
For work, I am trying to create a Word template. In the cover sheet
of
the
template, I have a variable/bookmark labelled '[Enter System Name]'. This
variable appears throughout the body of the document. I want to create a
macro or a field code such that when someone assigns a value to '[Enter
System Name]' (on the cover sheet), all other variables (in the body
of
the
document) are updated automatically. The keyword is AUTOMATICALLY.
Is
this
possible in Word?

Currently, I am using bookmarks and field codes (SET, FILLIN, REF),
but
the
updates have to be updated manually. Basically, I have to select the Toggle
Field Code wherever the { REF SystemName } field code appears. Is there a
more efficient way of implementing this problem. Thanks.
 
K

Keith Shepherd

Hi, sorry to chime-in unannounced but since your on the topic of macros,
please can you tell me if there is a macro that will:
a) find every word in a .doc then
b) insert whatever was found above the original word in the form of word's
'phonetic text'?

I havea doc with 600 000 words that i have to insert the phonetics for but
it is getting a bit tedious. If i can find such a macro it would be then
easy to use another macro that only searchers within the phonetic text to
replace the characters that require change.

thanks

RS



Charles Kenyon said:
Suzanne gave you what is probably the simplest and most elegant method.
For others, see http://gregmaxey.mvps.org/Repeating_Data.htm. Often what
will work for updating REF fields, though, is Ctrl-A, F9.

--
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.
WordUp said:
For work, I am trying to create a Word template. In the cover sheet of
the
template, I have a variable/bookmark labelled '[Enter System Name]'. This
variable appears throughout the body of the document. I want to create a
macro or a field code such that when someone assigns a value to '[Enter
System Name]' (on the cover sheet), all other variables (in the body of
the
document) are updated automatically. The keyword is AUTOMATICALLY. Is
this
possible in Word?

Currently, I am using bookmarks and field codes (SET, FILLIN, REF), but
the
updates have to be updated manually. Basically, I have to select the
Toggle
Field Code wherever the { REF SystemName } field code appears. Is there
a
more efficient way of implementing this problem. Thanks.




---
avast! Antivirus: Inbound message clean.
Virus Database (VPS): 0620-3, 19/05/2006
Tested on: 22/05/2006 00:00:55
avast! - copyright (c) 1988-2006 ALWIL Software.
http://www.avast.com




---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0620-3, 19/05/2006
Tested on: 22/05/2006 00:09:57
avast! - copyright (c) 1988-2006 ALWIL Software.
http://www.avast.com
 
R

Robert M. Franz (RMF)

Hi Keith

Keith said:
Hi, sorry to chime-in unannounced but since your on the topic of macros,

Opening up a new thread would have been the right thing to do (and in
another group, too, I'd wager)!

please can you tell me if there is a macro that will:
a) find every word in a .doc then
b) insert whatever was found above the original word in the form of word's
'phonetic text'?

Short answer: Of course there is such a macro. You just have to write
it. ;-)

The implementation has to tackle one minor and one major obstacle; the
minor one is: what do you mean with "above"? And the major one: where
would the phonetic information come from?

To my knowledge, nowhere in Word is phonetic information saved. IOW: you
would have to provide a (probably not too small) database containing all
the Words and the relevant phonetic information in order to enable the
macro to do something meaningful. Provided you are dealing with English
and not, say, Esperanto as a language. (Italian, maybe also Spanish or
even French migh be a lot easier, but English, phew ...).

I havea doc with 600 000 words that i have to insert the phonetics for but
it is getting a bit tedious. If i can find such a macro it would be then
easy to use another macro that only searchers within the phonetic text to
replace the characters that require change.

Hmm, how would you determine that needed change, I wonder. If you were
able to do that programmatically, you could insert it in the right way
up front.

Greetings
Robert
 

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