Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Snoopygirl Snoopygirl is offline
external usenet poster
 
Posts: 2
Default Printing UNUSED fields in forms

I have created a form in MSWord using the Forms Toolbox. There are a few
fields I do not want to print if the user does not fill it in. For example,
if the field text says "What is your mother's name", and the user skips this
field, I do not want the field text to print. I want the field to be blank.
How can this be accomplished? I have searched all over to figure this out.
Please help. Thank you!
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Printing UNUSED fields in forms

Are you saying that you have "What is your mother's name" in the field as a
default text?
In that case, run the following macro on exit from the field to clear the
text (here field Text1) if the user tabs over the field.

Sub ClearField1()
Dim sText As String
sText = ActiveDocument.FormFields("Text1").Result
If sText = "What is your mother's name?" Then
ActiveDocument.FormFields("Text1").Result = ""
End If
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Snoopygirl wrote:
I have created a form in MSWord using the Forms Toolbox. There are a
few fields I do not want to print if the user does not fill it in.
For example, if the field text says "What is your mother's name", and
the user skips this field, I do not want the field text to print. I
want the field to be blank. How can this be accomplished? I have
searched all over to figure this out. Please help. Thank you!



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Snoopygirl Snoopygirl is offline
external usenet poster
 
Posts: 2
Default Printing UNUSED fields in forms

Ah, yes......default text is what I meant I am glad you understood what I
was saying. It sounds like your solution just might work. I will give it a
try.
Thank you!

"Graham Mayor" wrote:

Are you saying that you have "What is your mother's name" in the field as a
default text?
In that case, run the following macro on exit from the field to clear the
text (here field Text1) if the user tabs over the field.

Sub ClearField1()
Dim sText As String
sText = ActiveDocument.FormFields("Text1").Result
If sText = "What is your mother's name?" Then
ActiveDocument.FormFields("Text1").Result = ""
End If
End Sub

http://www.gmayor.com/installing_macro.htm

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Snoopygirl wrote:
I have created a form in MSWord using the Forms Toolbox. There are a
few fields I do not want to print if the user does not fill it in.
For example, if the field text says "What is your mother's name", and
the user skips this field, I do not want the field text to print. I
want the field to be blank. How can this be accomplished? I have
searched all over to figure this out. Please help. Thank you!




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms and fields rexmann Microsoft Word Help 3 September 27th 07 11:15 AM
About fields in forms DeeDeeCee Microsoft Word Help 3 July 11th 07 01:06 AM
Fields in Forms Dee Microsoft Word Help 3 January 26th 06 05:16 PM
printing empty text fields on word forms moombi Microsoft Word Help 1 June 10th 05 08:16 AM
Master/Sub, Forms or Fields... Oh My! Duff Microsoft Word Help 2 February 27th 05 09:03 PM


All times are GMT +1. The time now is 08:26 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"