View Single Post
  #5   Report Post  
Posted to microsoft.public.word.docmanagement
caj caj is offline
external usenet poster
 
Posts: 16
Default Can I create a checklist that changes color as items are check

That is one way to do it. Another, I think, simpler way to do this is to
create the form in Excel. Use conditional formating to change the color of
the text when the box beside it has an X or something entered into it.

"Bear" wrote:

Waco:

Okay, then the template provides a place where you can store your macro code
and have a good chance that it will be available to the forms created.

I'm thinking that your form should look like a table, with the check box in
the first column and the step text in the second column. (The table need not
have any visible gridlines or borders.)

You should use macrobuttons to toggle the checkbox and change the font color
of the entire row -- this is to avoid having to protect and unprotect a
formfield document.

Here, Graham Mayor shows how to use a macrobutton field to toggle a check box.

http://www.gmayor.com/Macrobutton.htm

Follow his instructions. All you have to do is add a line of code to each
subroutine to change the font color for that row. Here's an example -- but
note that I've used slightly different autotext and macro names -- just a
personal preference. If you're using Graham's naming, you just need to add
the "Selection.Rows..." line in the same place shown.

Sub cbxCheck()
ActiveDocument.AttachedTemplate.AutoTextEntries("C hecked Box").Insert _
whe=Selection.Range
Selection.Rows(1).Range.Font.Color = wdColorBlue
End Sub

Sub cbxClear()
ActiveDocument.AttachedTemplate.AutoTextEntries("C leared Box").Insert _
whe=Selection.Range
Selection.Rows(1).Range.Font.Color = wdColorRed
End Sub

Bear
--
Windows XP, Word 2000