Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Andy Roberts Andy Roberts is offline
external usenet poster
 
Posts: 24
Default Checkbox in Form / Table

I have a checkbox on a protected form within a complicated table in Word.
When I check the box I want it to box Red and Bold (like conditional
formatting in Excel). Is it possible?

Andy


  #2   Report Post  
Posted to microsoft.public.word.tables
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Checkbox in Form / Table

You cannot change the colour of the checkbox itself, but the following code
in a macro run on exit from the checkbox formfield will colour the cell in
which the checkbox is located - Red if it is checked and Green if not.

With ActiveDocument
.Unprotect
With Selection
If .FormFields(1).CheckBox.Value = True Then
.Cells(1).Shading.BackgroundPatternColor = wdColorRed
Else
.Cells(1).Shading.BackgroundPatternColor = wdColorGreen
End If
End With
.Protect wdAllowOnlyFormFields, NoReset
End With


--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.
"Andy Roberts" wrote in message
...
I have a checkbox on a protected form within a complicated table in Word.
When I check the box I want it to box Red and Bold (like conditional
formatting in Excel). Is it possible?

Andy


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
Form Checkbox Owen Microsoft Word Help 2 July 18th 09 09:48 PM
How do I protect the checkbox in my form mike New Users 5 October 8th 08 11:26 AM
Form fields: IF (checkbox)? Mike Microsoft Word Help 2 April 29th 06 01:10 PM
Form Field Checkbox Peggy Microsoft Word Help 1 March 2nd 06 10:33 AM
IF THEN ELSE with FORM CHECKBOX Jane Mailmerge 1 March 25th 05 07:55 AM


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