Printing a Checklist

  • Thread starter Thread starter whatever
  • Start date Start date
W

whatever

Quick and possibly stupid question. Is there a way to create a list in Word
that has check boxes next to line items that, when checked, are the only
items that print out? Thanks in advance!
 
I guess you mean that only the checked items print out, not that only the
check boxes print out. The latter is easy; the former is difficult.
 
I found this macro:

With ActiveDocument
..Unprotect
If .FormFields("Check1").CheckBox.Value = False Then
..Bookmarks ("CheckBox1Text").Range.Font.Hidden=True
Else
..Bookmarks("CheckBox1Text").Range.Font.Hidden=False
End If
..Protect wdAllowOnlyFormFields, NoReset
End With


It seems to work fine. I just need to figure out how to hide the boxes now
:)
 
You need to hide the check box as well as the text field

With ActiveDocument
..Unprotect
If .FormFields("Check1").CheckBox.Value = False Then
..Bookmarks("CheckBox1Text").Range.Font.Hidden = True
..Bookmarks("Check1").Range.Font.Hidden = True
Else
..Bookmarks("CheckBox1Text").Range.Font.Hidden = False
..Bookmarks("Check1").Range.Font.Hidden = False
End If
..Protect wdAllowOnlyFormFields, NoReset
End With

However you will need a macro to reet the form as once hidden there is no
way of re-accessing the checkbox to un-hide the hidden stuff

With ActiveDocument
.Unprotect
.Range.Select
Selection.Font.Hidden = False
.Protect wdAllowOnlyFormFields, NoReset
End With

See also http://gregmaxey.mvps.org/Toggle_Data_Display.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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

Back
Top