Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Jezebel
 
Posts: n/a
Default Form rows with CheckBoxes

You've already established that your method doesn't work acceptably. So your
choices are live with it, or do something else. Unless you are particularly
in love with the dead horse?



"GusEvans" wrote in message
...
Jezebel-

The user already has a couple of hundred already done - all I need to know
is if there is anyway to effectively compress the unchecked ones with
little
or no indication. So far I am using the following code to do it -

Sub CloseUnChecked()
Dim intX As Integer
Dim strRow As String
Dim vCB As CheckBox

Application.ScreenUpdating = False
If ActiveDocument.ProtectionType wdNoProtection Then
ActiveDocument.Unprotect Password:=strPassword
End If
For intX = 1 To 26
strRow = "chkRow" & intX
Set vCB = ActiveDocument.FormFields(strRow).CheckBox
If vCB.Value = False Then
With vCB
.AutoSize = True
.Size = 1
End With
ActiveDocument.Tables(1).Rows(intX).Select
With ActiveDocument.Tables(1).Rows(intX)
.HeightRule = wdRowHeightExactly
.Height = 1
End With
End If
Next
ActiveDocument.Protect Type:=wdAllowOnlyFormFields,
Password:=strPassword
End Sub

--
Gus Evans


"Jezebel" wrote:

Use plain text instead of a table, then format the unwanted lines as
hidden.
Use a hanging indent for the comment 'column'.




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
Can Hyperlinks and checkboxes work in the same form template? Lyn E. Microsoft Word Help 2 March 9th 07 06:21 PM
Add checkboxes with macro in Merge document? Bryan L Tables 3 October 19th 05 04:05 PM
If..then..else not showing form checkboxes Sasquatch Microsoft Word Help 2 July 1st 05 03:43 PM
Creating a form with fill-ins can you use checkboxes? Linda829 Microsoft Word Help 2 May 11th 05 10:52 PM
How to use checkboxes in an unprotected form? bkerrigan100 Microsoft Word Help 1 April 4th 05 12:08 AM


All times are GMT +1. The time now is 12:43 AM.

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"