Evaluate checkbox in form field macro

R

Ricki Miles

I am working in Word 2000, creating a template that will be a protected
form. I need an on exit macro for acheck box that will first evaluate
whether the check box is checked, and if so, insert an autotext that has
additional form fields, then go to the next form field within the autotext
(not necessarily a check box type). If the check box is not checked, the
macro will simply go to the next form field in the document. I did get some
help with check boxes a few days ago, but only to evaluate if any check box
in the document is checked. Now I need to know if the current check box is
checked and proceed with another action.

I appreciate all the help! Thanks,

Ricki
 
R

Ricki Miles

Thanks Chad,

I'm afraid that article does not show me how to evaluate whether the
checkbox is checked or not, which is where I need to start. Thanks,

Ricki
 
C

Chad DeMeyer

Once you have a reference to the current checkbox, let's say

Dim oCheck as FormField
Set oCheck = Selection.FormFields(1)
'to determine whether checkbox is checked:
If oCheck.CheckBox.Value = True Then
'checked
Else
'not checked
End If

Regards,
Chad
 

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