Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
how to close gap when hiding text on form
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 ----------------------------------------- Thanks -- karen |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Hiding the input of a Word 2003 form field | Microsoft Word Help | |||
Hiding Text | Microsoft Word Help | |||
Hiding unused checkboxes in a form | Microsoft Word Help | |||
Displaying and hiding text | New Users | |||
Track changes should show added text while HIDING deleted text. | Microsoft Word Help |