Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Using control values within IF field
Hello,
I'm using Word2003 and I would like to use the result from a check box (i.e. True or False) in an IF field/function, but don't know how to. I've gone as far as typing the following, which doesn't work: IF (Checkbox(Customer).value=true,YES,NO) I would also like the field to update automatically when the check box value changes. Any suggestions would be greatly appreciated ! thanks in advance |
#2
|
|||
|
|||
Olivier,
I think your only option is an on exit macro to evaluate the checkbox state. You and then set the value of another formfield or set a docVariable to use in an IF field. Here is a bit of code to get you started: Sub EvaluateCB() With ActiveDocument If .FormFields("Check1").Result = True Then .FormFields("Text1").Result = "Yes" Else .FormFields("Text1").Result = "No" End If End With End Sub |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Enter data in 1 text form field & have multiple locations fill | Microsoft Word Help | |||
Field, and formatting | Page Layout | |||
Home Phone field not getting picked up in Merge | Mailmerge | |||
How do I use the PRINT field code to ... | Microsoft Word Help | |||
Text Form Field Ref in Footer Won't Update on Screen | Microsoft Word Help |