Hide checkboxes when hiding rows

前端 未结 1 788
面向向阳花
面向向阳花 2021-01-05 13:23

I have used VBA code to hide some rows. These rows are hidden when I click a check box.

The problem I have now is - the check boxes associated with each row will no

相关标签:
1条回答
  • 2021-01-05 14:08

    You need to set the checkboxes to "Move and Size With Cells." The last time I did this, with Excel 2003 it was easy: just right-click, choose "Properties" and choose that option. Now if you try that you'll see the option, but it's disabled:

    enter image description here

    So instead you need to access the more modern-looking format menu in Excel 2007 onwards. I did it by clicking the little "more" arrow on the Drawing Tools tab's Format group. For some reason it's enabled there. Once you set it your checkbox will hide with its row:

    enter image description here

    0 讨论(0)
提交回复
热议问题