Suzanne
I think I did exactly as you suggested and I get an Error Message
34.78
Error! Unknown switch argument. Dollars
Thanks
George
:
You need to add some prompt text to your MacroButton field. My
suggested
version was:
{ MacroButton NoMacro [Type amount here] }
When field codes are toggled to display field results, you'll see
[Type
amount here] for Field 1 and nothing for Field 2. Click anywhere in
Field
1
and type your amount. Then select all the text and press F9; the
formatted
amount will appear in place of Field 2.
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
message
Suzanne
This what I did:
Field 1: { MacroButton NoMacro }
I am using Word 2003 so I went to New Styles Box and set up a new
Style
Amount, I then High Lighted the macro and using the drop down
formatting
box
with Normal in it I applied the style.
Field 2: { StyleRef "Amount" \*DollarText \* FirstCap } Dollars
Then I get confused since I have never done this, When, where and
how
do
enter the Dollar Amount. I guess I know how, just when and where.
Maybe
you
could show in the example above $25.87.
Then do i put my cursor in field 2 an press F9?
Thanks
George
:
Here's one way to do it:
1. For Field 1, press Ctrl+F9 and, between the field braces, type
MacroButton NoMacro [Type amount here].
2. Format Field 1 with a *character* style that you have created
for
the
purpose (if you don't know how to do that, see
http://sbarnhill.mvps.org/WordFAQs/StyleRef.htm). Let's call it
Amount
for
the sake of this example.
3. For Field 2, press Ctrl+F9 and type StyleRef "Amount"
\*DollarText
\*
FirstCap. Type "Dollars" after the field.
4. After typing the amount into Field 1, you'll have to manually
update
Field 2 (with F9) unless it's in the header or footer.
You could probably accomplish the same thing by bookmarking the
amount
you
enter and using a REF field (with the same formatting switches) to
pick
it
up.
--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
message
I have a document that I want to put in two FIELDS, the first
field
is
for
a
number that I will manually put in, the second field is a formula
that
refers
to a VBA code to write out the figure I put in in field 1. See
example
below.
I have done this in EXCEL and it works great. I think I figured
out
field,
but I do not know how to make the field or how to refer to it
from
field
2.
Your help would be appreciated.
Field 1 $141.47
Field 2 One Hundred Forty One and......47/100 Dollars
George