I have a form in which the user may not complete all the fields. When the
user is done, I would like to remove the empty fields as well as the
headings used to describe the field so that when the document is printed, no
empty fields (or their headings) will be printed.
I was planning to make the headings by making a form text box with the
default text "locked" so that the user cannot alter the heading text then
follow it with a text box that the user can use for input.
When the user completes the form, I was going to have the VBA script check
to see if the user input text box was blank. If it is blank, then delete
the user input box as well as the heading text box.
The form looks something like this
(CR)
HEADING1
(CR)
[form text box for input]
(CR)
HEADING2
(CR)
[next form text box for input]
..., etc.
-Brian
Doug Robbins - Word MVP said:
Hi Brian,
Why you format the paragraph with space before and after?
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
using
the