Delete check box from cell

  • Thread starter Thread starter Srini
  • Start date Start date
S

Srini

How to delete a checkbox from a cell. I copied multiple rows of information
from the extranet with each row having checkboxes, but I need to remove them
now. Please help.
 
To remove all checkboxes, execute the following macro :

Sub test()
Dim sh As Shape
On Error Resume Next
For Each sh In ActiveSheet.Shapes
If sh.FormControlType = xlCheckBox Then
sh.Delete
ElseIf Left(sh.OLEFormat.progID, 14) = "Forms.Checkbox" Then
End If
Next
End Sub

HTH
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top