how to close gap when hiding text on form

K

karen

Iam new at this... sorry. I am creating a form. On this form I have a
checkbox, when the user checks it that means they want to skip the next
section. They would like the next section to not be printed and no white
space either.
I have hidden the text in the area, but the white space still prints. any
suggestions???

(form looks like this: _ skip following
input 1 input 2
input 3
_ _
_
_ _
_
_ _
_
_ schooling... continue here.....
the inputs are in a table.. if they
check the first checkbox(skip following), the form will take them to the
schooling checkbox and will hide the table... but the white space is printed.)

my macro looks like this:
Sub MasterCheckBox()

'declare a variable as boolean, since checkboxes are yes/no,
true/false
Dim blnMasterValue As Boolean

'set the value of the variable to the value of the master checkbox
blnMasterValue = ActiveDocument.FormFields("skip
section").CheckBox.Value

'if the master variable value is true (checked)(skip section)
If blnMasterValue = True Then
ActiveDocument.Unprotect
'then mark other checkboxes to be hidden
For i = 1 To 9

ActiveDocument.Bookmarks("input" & i).Range.Font.Hidden = True

Next i
ActiveDocument.Bookmarks("schooling").Select
ActiveDocument.Protect wdAllowOnlyFormFields, NoReset

Else
ActiveDocument.Unprotect
For i = 1 To 9

ActiveDocument.Bookmarks("inputl" & i).Range.Font.Hidden = False

Next i
ActiveDocument.Bookmarks("input1").Select
ActiveDocument.Protect wdAllowOnlyFormFields, NoReset

End If


End Sub
 

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