Remove CheckBox on Worksheet or UserForm in Excel

Home/Excel VBA/Remove CheckBox on Worksheet or UserForm in Excel

We can remove or delete checkbox on the worksheet or userform using ‘Go To Special’ or ‘Select Objects’ or by turning on Design Mode in Developer tab. when we don’t want to place checkbox control on the worksheet or userform we removes from there. Please find the more details and screenshots for clear understanding about remove checkbox control in the following chapter.

PREMIUM TEMPLATES LIMITED TIME OFFER

ON SALE80% OFF

BROWSE ALL TEMPLATES

50+ Project Management Templates Pack
Excel PowerPoint Word

VIEW DETAILS

Advanced Project Plan & Portfolio Template
Excel Template

VIEW DETAILS

Ultimate Project Management Template
Excel Template

VIEW DETAILS

20+ Excel Project Management Pack
Excel Templates

VIEW DETAILS

20+ PowerPoint Project Management Pack
PowerPoint Templates

VIEW DETAILS

10+ MS Word Project Management Pack
Word Templates

VIEW DETAILS


In this Topic:

remove checkbox on worksheet or userform

Remove a CheckBox on the Worksheet: Using Go To Special

Please find the below example code, it will show you how to remove a checkbox on the worksheet using Go To Special from Editing. Go To Special command is used to sleet many types of control, one of those is objects. Please follow the below instructions to remove checkbox.

  1. Go To Home tab, click Find & Select (Editing). Now the following dialog box will be appeared. It is shown in the following screenshot.
  2. Checkbox Goto Special in Excel

  3. Choose the Objects option from the Go To Select command. And then click OK button.
  4. All of the check boxes have been selected. (If Worksheet contains any other objects, it will delete other objects als).
  5. Press the Delete key to delete check boxes on the keyboard.
  6. Once you click on the Delete button, all of the checkboxes will be deleted,

Remove a CheckBox on the Worksheet: Using Select Objects

Please find the below example code, it will show you how to remove a checkbox on the worksheet using Select Objects from Editing.

  1. Go To Home tab, click Find & Select (Editing), click Select Objects. It is shown in the following screenshot.
  2. remove Checkbox Select object

  3. Now, select the checkbox objects which you wanted to delete.
  4. Press the Delete key to delete check boxes on the keyboard.
  5. Once you click on the Delete button, all of the checkboxes will be deleted,

Remove a CheckBox on the Worksheet: Using Design Mode

Please find the below example code, it will show you how to remove a checkbox on the worksheet using Design Mode from Controls.

  1. Go To Developer tab, Click Design Mode(It Should be On). It is shown in the following screenshot.
  2. Excel VBA CheckBox Design Mode

  3. Now, select the checkbox objects which you wanted to delete.
  4. Press the Delete key to delete check boxes on the keyboard.
  5. Once you click on the Delete button, all of the checkboxes will be deleted,

Remove Checkbox Controls using VBA

Here is the VBA code to remove all Checkbox controls (Worksheet Form Controls) in active sheet.

Sub sbRemoveCheckboxesinActiveSheet_FormControls()

For Each shp In ActiveSheet.Shapes
    If shp.Type = msoFormControl Then
        If shp.FormControlType = 1 Then shp.Delete
    End If
Next
    
End Sub

And below is the VBA Macro to remove all OLE Checkbox controls in active sheet.

Sub sbRemoveCheckboxesinActiveSheet_OLEControls()

For Each shp In ActiveSheet.Shapes
If shp.Type = msoOLEControlObject Then
        If shp.OLEFormat.Object.OLEType = 2 Then shp.Delete
    End If
Next    
End Sub

More about Checkbox control

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

LIMITED TIME OFFER - Get it Now!
Advanced Project Plan Excel Template

 
Related Resource External VBA Reference
By |April 15th, 2015|Excel VBA|6 Comments

About the Author:

Excel VBA Developer having around 8 years of experience in using Excel and VBA for automating the daily tasks, reports generation and dashboards preparation. Valli is sharing to helps us automating daily tasks.

6 Comments

  1. jazz June 20, 2016 at 6:54 PM - Reply

    you are a life saver lol

  2. Vishvendar December 19, 2016 at 9:45 PM - Reply

    oh man… can’t thank you enough…. was trying to delete a checkbox since 1 hour as developer mode solution wasn’t working…’select object’ solution was a huge relief

  3. Howard February 10, 2017 at 3:27 AM - Reply

    Worked fine, thanks.

  4. CathyD July 28, 2017 at 5:24 PM - Reply

    Wow – very clear, THANK YOU!

  5. Jenni October 22, 2017 at 6:41 AM - Reply

    If you have a sheet with pictures and checkboxes, these instructions will delete both the checkboxes and photos. What if you want to keep the photos.

    • PNRao October 26, 2017 at 12:49 PM - Reply

      Hi, We have added a VBA code to remove only checkboxes and keep the photos and other objects as it is.

Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.