CheckBox Control is used to specify or indicate binary choice. That is either Turn on or off a value. When we use more checkboxs, you can select more than one CheckBox at a time on the Worksheet. You can select multiple check boxes in a group box. Please find more details about ActiveX CheckBox Control in the following chapter.



50+ Project Management Templates Pack
Excel PowerPoint Word

Advanced Project Plan & Portfolio Template
Excel Template

Business Presentations Templates Pack
PowerPoint Slides

20+ Excel Project Management Pack
Excel Templates

20+ PowerPoint Project Management Pack
PowerPoint Templates

10+ MS Word Project Management Pack
Word Templates

VBA ActiveX CheckBox Control on the Worksheet

Please find the below instructions about VBA ActiveX CheckBox Control on the Worksheet.

  1. Go To Developer Tab and then click Insert from the Controls
  2. Click on the Check box from the Activex Controls group.
  3. Drag a checkbox on the Worksheet.
  4. Right click the Checkbox (Design Mode should be turned ON).
  5. Click on View Code from the available list.
  6. Now, it takes to you VBA Editor window with the following code.
  7. Private Sub CheckBox1_Click()
    End Sub

    Note: In the above code ‘CheckBox1’ is the Check box name.

  8. Add the following statements to the above code.
  9. Private Sub CheckBox1_Click()
    If CheckBox1.Value = True Then
    Sheet5.Range("E2").Value = 1 ‘Check
    Sheet5.Range("E2").Value = 0 ‘UnCheck
    End If
    End Sub
  10. Go to Worksheet Sheet5 (Worksheet Name) and click the check box (Design Mode should be turned OFF).
  11. Now, you can see the result in Range(“E2”) on Sheet5.

More details about Check box control

Here is the link more about how to add check box control on the Worksheet or UserForm in Excel.
Read More …

Here is the one more link to more about how to add check box control on the Worksheet or UserForm using VBA in Excel.
Read More …

Here is the one more link to more about how to remove check box control on the Worksheet or UserForm in Excel.
Read More …



  1. HANG Sokha December 20, 2016 at 12:54 PM - Reply

    Hello, I have problem with unsave the checkbox control. I try following steps above. It shows correctly during open, but it will not appear again after close and open again.

  2. Eric February 28, 2017 at 10:49 PM - Reply

    Hello, Thank you for the tutorial. I am new to VBA and have a question on how to code the checkboxes I’m working on. I have sheet 1 with checkboxes on it and on sheet 2 I have a list of sentences in different cells. what I want to happen is when a checkbox is checked on sheet 1 I want it to take a specific sentence from sheet 2 and put it in a “Notes” box on sheet 1. That way I can compile notes with a couple checks of some checkboxes. Any help would be greatly appreciated. Thanks

Leave A Comment

Related pages

excel pie of pie chart tutorialexcel copy worksheet vbamacros in sas tutorialexcel macro open excel filehow to use sum if formulaautomation testing interview questions and answers pdf free downloadunhide excelunprotect excel spreadsheet 2010excel merge columnscreate a new worksheet in excelvbscript carriage returnhow to color excel cellsaccess 2007 msgboxexcel vba remove rowsumif excellcsv converter to excelcolor code worksheetshow to copy data validation to other cellsuserform vba examplevba delete duplicatesmicrosoft excel tables tutorialworksheet select vbaexcel 2007 vba pdfiserror excel functionworksheet function in vbacode vba excelvlookup with choose functionmacro to refresh pivot tablegoto vba excelcharter template project managementhow lock excel sheetevents at excelsas programming video tutorialsvlookup and hlookup in excel with exampleexcel vba new worksheetvba screen updatehow to unhide hidden rows in excelexcel check duplicate formulapivot tables examplesexcel worksheet name in cellmerge multiple excel files into one sheet vbaswot analysis word templateadvanced filter in excel vbaexcel vba onloadvba program examplesmsgbox buttonshow do i hide columns in excelexcel countif functionhow to create a workbook in excelexcel workbook tabsexcel programming commandsexcel 2010 if statementsexcel hlookup functionunhide all columnsleft in excel vbasearch duplicates in excelexcel vba displaysql pivot table tutorialclose excel in vbaautofit columns in excelreturn vbaexcel vba passwordaddress vbamicrosoft excel chart titlecopy excel sheet to another workbookexcel vlookup function exampleexcel unhide commandunprotect workbook excel 2007sql interview questions advancedexcel unhide all columnsdata validation excel 2010ms excel pivot table tutorialmacros codingvba excel dialog boxexcel macros how to