Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
Karen Karen is offline
external usenet poster
 
Posts: 204
Default 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

Posting Rules

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding the input of a Word 2003 form field Loretta Microsoft Word Help 1 June 27th 08 09:37 AM
Hiding Text Darren Microsoft Word Help 1 December 6th 07 01:36 AM
Hiding unused checkboxes in a form mmh78 Microsoft Word Help 1 May 18th 07 11:54 AM
Displaying and hiding text Gary Wooding New Users 5 October 13th 05 11:20 AM
Track changes should show added text while HIDING deleted text. Janet at Boeing Microsoft Word Help 6 June 3rd 05 03:22 AM


All times are GMT +1. The time now is 06:04 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"