Hide checkbox along with row

a_greyish_iron

New Member
Joined
Jul 21, 2011
Messages
1
My excel sheet has multiple rows of data and each row has a checkbox in it.
Now, on some condition, I want to hide certain rows along with their checboxes. On hiding the rows, expectedly, the checkboxes are not getting hidden along with it.

I have seen a few sample VBA codes which solve the problem but all of them use the "For each checbox in ActiveSheet.Checkboxes" construct and then hide the checkboxes that fulfill a certain condition through the Visible property.

I dont want to use the FOR construct as my sheet has more than 500 checkboxes and on hiding/unhiding the rows frequently, the excel is getting slow as it has to loop through all the checkboxes in the sheet.

Does anybody have any other ideas on how can I do this?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
One way might be to append the row number or cell address to each check box name. Then as you hide the rows you could build a check box name from the row number and address each check box by name.

Gary
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,337
Members
452,907
Latest member
Roland Deschain

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top