Reply
 
Thread Tools Display Modes
  #1   Report Post  
Form-ally Stumped!
 
Posts: n/a
Default Working with forms - trying to hide default text on printing

Hi all,

I have just completed a new form using mainly text form fields and check
boxes. I used the "default text" option in the text form fields to display
instructions to the form users. However, forms will not always be completed
in soft copy. I need to figure out how to show the default text in Word, but
to print the form without having this default text displayed (in other words,
I want the instructions displayed for online filling, but removed when
printing hard copies of the incomplete form).

Does anyone know how to fix this?
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?Rm9ybS1hbGx5IFN0dW1wZWQh?=,

I have just completed a new form using mainly text form fields and check
boxes. I used the "default text" option in the text form fields to display
instructions to the form users. However, forms will not always be completed
in soft copy. I need to figure out how to show the default text in Word, but
to print the form without having this default text displayed (in other words,
I want the instructions displayed for online filling, but removed when
printing hard copies of the incomplete form).

Does anyone know how to fix this?

Probably a macro that inserts a space into all fields where the field .Result is
the same as the .Default. Here's an example that will run when you click the
Print button in the toolbar.

Sub FilePrintDefault()
Dim ffld As Word.FormField
Dim doc As Word.Document

Set doc = ActiveDocument
For i = 1 To doc.FormFields.Count
Set ffld = doc.FormFields(i)
If ffld.TextInput.Valid Then
If ffld.TextInput.Default = ffld.Result Then
ffld.Result = " "
End If
End If
Next i
doc.PrintOut
End Sub


Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

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
How do I default NOT highlighting protected text to edit? bpbull Microsoft Word Help 1 May 15th 05 12:11 PM
Auto text not working BBiletch Microsoft Word Help 3 April 26th 05 04:02 PM
Outlook with Word as Editor default text Francesca Microsoft Word Help 1 April 19th 05 05:14 AM
Auto text not working properly KM1 Microsoft Word Help 1 January 29th 05 04:22 PM
setting body text as the default style Thomas Campitelli Microsoft Word Help 13 January 26th 05 02:22 AM


All times are GMT +1. The time now is 12:51 PM.

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

About Us

"It's about Microsoft Word"