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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

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