Using code to hide format of form field until needed.

K

Kay

I have a form in Word 2003 that will serve two purposes. It can be filled
out electronically or printed and hand-written. I am using a calculated
field, but do not want the "0" to print when it is used as a hand-written
doc. Suggestions appreciated.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...d46709c7&dg=microsoft.public.word.vba.general
 
D

Doug Robbins - Word MVP

After setting up your calculation type formfield, but before protecting the
document for filling in forms, use Alt+F9 to toggle on the display of the
field codes and add the \# "0;-0; " formatting switch

{ FORMTEXT { [Your Formula] \# "0;-0; " } }

--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.
 

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