Macro for selecting checkboxes

Johnny Thunder

Well-known Member
Joined
Apr 9, 2010
Messages
693
Office Version
  1. 2016
Platform
  1. MacOS
Hello,


I was not sure if writing Macro's in Excel would be the same if I was to transfer it into Word 2003?

I need a macro to select checkboxes on a word doc. that I have. I can figure out how to get it to select the certain check box that I need selected I just don't know what the proper script is for selecting check boxes?

Any help would be appreciated! Thanks
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Maybe post on ExcelFox.com - I think they have word forum as well as Excel
 
Upvote 0
This seemed to work for me:

Code:
ActiveDocument.FormFields("Check1").CheckBox.Value = True

This is using a legacy checkbox. Couldn't figure out how to do an activex checkbox.
 
Upvote 0
Oh wait, it's just:

Code:
ActiveDocument.CheckBox1.Value = True

Intellisense didn't seem to pick it up.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top