Activate check box form field

S

Steve C

Using Word 2003, I wish to use programming to check a check box that was
added using the Forms toolbar. My current code using the following line to
locate the check box, which is bookmarked as "Plumbing":

ActiveDocument.Bookmarks("Plumbing").Range.Select

What code can I use to then check the check box (i.e., place an X in it)?
Thanks!
 
S

Steve C

Answering my own question: I needed the following code:

ActiveDocument.FormFields("Plumbing").CheckBox.Value = True
 
G

Gordon Bentley-Mix

And I trust you know that you don't need to select the checkbox first...
--
Cheers!
Gordon
The Kiwi Koder

Uninvited email contact will be marked as SPAM and ignored. Please post all
follow-ups to the newsgroup.
 
S

Steve C

I do NOW, Gordon. Thanks!
--
Steve C


Gordon Bentley-Mix said:
And I trust you know that you don't need to select the checkbox first...
--
Cheers!
Gordon
The Kiwi Koder

Uninvited email contact will be marked as SPAM and ignored. Please post all
follow-ups to the newsgroup.
 

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