Referencing a check box result within a formula

S

Sean N.

I am trying to create an "If" formula that uses a check box result as the
operator. What should I reference to get a desired result when a check box
is marked as opposed to unmarked?
 
M

macropod

Hi Sean,

Not possible via field coding, unfortunately, so you'll need to use a macro. For example, with a formfield checkbox named 'Check1'
you could set the following as an 'on exit' macro for that field:

Sub CheckState()
If ActiveDocument.FormFields("Check1").Result = 1 Then
'Whatever you want to do if the value = TRUE
End If
End Sub
 

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

Top