Help!

controlling form checkboxes from VBA code

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> User Forms RSS
Next:  Outlook Contacts hidden  
Author Message
optional



Joined: Aug 18, 2009
Posts: 1



PostPosted: Tue Aug 18, 2009 7:49 am    Post subject: controlling form checkboxes from VBA code

Hello,

I am buliding a form for completing forms. In the main document I use a checkbox inserted from tge form-toolbar, and I would like to have it checked or unchecked depending from the value of a control set on a Form.

example: the checkbox on the document has a bookmark name, which is "checkbox1"

There is a control in the macro which called Option1.
The code is

Private Sub CommandButton1_Click()
If optionbutton1.Value = True Then
ActiveDocument.Bookmarks("checkbox1").......
End If

End Sub

What should I put in the place of ....., if I want the checkbox on the documents checked?

Thank you
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> User Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum