Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Select and delete groups of check boxes from spreadsheet

Posted on 2014-03-18
6
Medium Priority
?
158 Views
Last Modified: 2014-03-18
I copied data including checkboxes from a website and pasted it in Excel.
I want to select these checkboxes in groups and then delete them.
Can it be done and how? The ordinary slector tool under Find an Select does not work.

Why I want to select them in groups is that I first want to copy the state of the checkboxes before I delete them.
Select-and-remove-check-boxes.xlsx
0
Comment
Question by:Fritz Paul
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 34

Expert Comment

by:Norie
ID: 39936622
Are you looking for code to do this?
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 2000 total points
ID: 39936631
From the Developer tab
Select Design mode

Now you can select and delete the checkboxes.

If you co not  have the developer tab available then look for it in the help. Or tell us the excel version and we shall tell you how to show it.
0
 

Author Comment

by:Fritz Paul
ID: 39936637
No I do not think code will help me here, for my purpose.
 
The problem is that the file is very large due to all the check boxes. I want to copy the values of the check boxes next to the names and then progresively delete the checkboxes as I copy their values over, in order to free up memory.

I would have preferred it if I could have pasted the box vales instead of the boxes themselves.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 34

Expert Comment

by:Norie
ID: 39936641
You can select the checkboxes if you switch to design mode.

This is the kind of code I was thinking of, it's based on the workbook you attached.
Sub GetChkValues()
Dim chk As OLEObject
Dim arr()
Dim I As Long

    I = 1
    For Each chk In Sheet1.OLEObjects
        If TypeName(chk.Object) = "HTMLCheckbox" Then
            ReDim Preserve arr(1 To 2, 1 To I)

            arr(1, I) = Sheet1.Cells(chk.TopLeftCell.Row, 3).Value & "-" & chk.TopLeftCell.Column
            arr(2, I) = chk.Object.Checked
            chk.Delete
            I = I + 1
        End If
    Next chk

    Range("D1").Resize(UBound(arr(), 2), UBound(arr(), 1)) = Application.Transpose(arr)

End Sub

Open in new window

0
 

Author Comment

by:Fritz Paul
ID: 39936652
Thanks Imnorie,
That so much that you did in such a short time. I must commend you, but the solution by Syed did exactly what I was looking for.
I love Experts-Exchange.
0
 
LVL 34

Expert Comment

by:Norie
ID: 39936663
Just thought it might be easier, and less prone to mistakes, to deal with a bunch of buttons with code rather than going through them manually.:)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question