How to Create a Disabled Pre-selected Check Box (Excel 2021)

I hope the title post is not confusing, but if it does, well I’m about to explain more! I want to create several checkboxes with one of them being selected by default, and I do not want anyone to deselect it. I’ve researched countless tutorials on how to do this but couldn’t come to a good solution, so here’s my workaround:

1.  On the Developer tab, in the Controls group, click Insert and select Check Box under ActiveX Controls.

disable_checkbox_2
 

2.  Draw the check box next to the text.

disable_checkbox_3

3.  Now, I want only the first check box to be checked and disabled. So, on the Developer tab, in the Controls group, click View Code to open the VBA window.

disable_checkbox_4
 

4.  Enter this code:

Private Sub CheckBox1_Click()
CheckBox1.Enabled = False
End Sub

disable_checkbox_5
 

5.  Save the code/workbook as an Excel Macro-Enabled Workbook. Then, exit the design mode by clicking the Design Mode button.

disable_checkbox_6
 

6.  Click the first check box to select it. Immediately after that, the check box became disabled. Any attempts to click on it is disregarded.

disable_checkbox_7
 

If you could not find the Developer tab in your Excel, do this:

Go to File > Options > Customized Ribbon and select Developer.

disable_checkbox_8
 

Well, how about that! Hope this method works for you. If you have an even better way to do this, let me know in the comment below.

 

Sharing is caring!

About perrinator

I wear many hats - blogger, writer, freelancer, gamer, traveler, baker, white-collar slave - I strive to offer valuable insights by sharing real-life examples of work-related challenges and how to address them. So, join me on this journey of learning and growth together!

View all posts by perrinator →

Leave a Reply

Your email address will not be published. Required fields are marked *