Check Box Value

J

John Crews

I am looking for a way to find out if a check box (or actually if one of two
check boxes) have been checked. I need to do this in a text form field on
the properties Expression field using Calculation as the type. I tried
something like this IF(CheckBox1,1,2) in the Expression but it did not work.
I have the calculate on exit check on the check boxes. I would prefer not
to do this in VBA. I would prefer to do this using the Calculate On Exit
and Expression.

Does anyone have any advice for me?
 
D

Doug Robbins - Word MVP on news.microsoft.com

You have to use VBA to do anything with the .Value of a checkbox formfield

To get the value, you need to use

ActiveDocument.FormFields("CheckBox1").CheckBox.Value

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
J

John Crews

Ok Doug....thanks for the reply.


Doug Robbins - Word MVP on news.microsoft.com said:
You have to use VBA to do anything with the .Value of a checkbox formfield

To get the value, you need to use

ActiveDocument.FormFields("CheckBox1").CheckBox.Value

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.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

Top