inserting a checkbox

Roy Condell

New Member
Joined
Sep 3, 2008
Messages
3
I'd like to create a check list in Excel that allows the viewer to manually click on a check box to choose certain options. Can someone help me with how to insert a checkbox?
Thank you
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
View->Toolbars->Control Toolbox. Click on the check-box on the toolbar then click-drag on the spreadsheet to place the new control. Double-click on the control to bring up the VBE where you can add code (by default the double-click will start up a macro to process the Click event for the check box).

There are other ways, of course, but this is probably the easiest. Now, what you do in the CLick macro is up to you and requires some VBA knowledge.

For example, assuming the check box name (by default, when created) is CheckBox1, you can then query the value, which will be true or false:

Code:
Private Sub CheckBox1_Click()
    If CheckBox1.Value Then
       Range("A1").Value = "yes"
    Else
        Range("A1").Value = "no"
    End If
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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