![]() |
reverse a "hide" function
Current code:
Private Sub CheckBox1_Click() Range("A10:A28").EntireRow.Hidden = CheckBox1.Value End Sub I need to reverse the checkbox. Currently, when it is checked, the rows hide. I need it to do the opposite. Anyone? Thanks D |
reverse a "hide" function
Use NOT
Private Sub CheckBox1_Click() Range("A10:A28").EntireRow.Hidden = not CheckBox1.Value End Sub "DarrenL" wrote: Current code: Private Sub CheckBox1_Click() Range("A10:A28").EntireRow.Hidden = CheckBox1.Value End Sub I need to reverse the checkbox. Currently, when it is checked, the rows hide. I need it to do the opposite. Anyone? Thanks D |
reverse a "hide" function
Awesome. Thanks. Had a feeling it was going to be really simple.
"Joel" wrote: Use NOT Private Sub CheckBox1_Click() Range("A10:A28").EntireRow.Hidden = not CheckBox1.Value End Sub "DarrenL" wrote: Current code: Private Sub CheckBox1_Click() Range("A10:A28").EntireRow.Hidden = CheckBox1.Value End Sub I need to reverse the checkbox. Currently, when it is checked, the rows hide. I need it to do the opposite. Anyone? Thanks D |
All times are GMT +1. The time now is 05:37 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com