ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   command button to unhide row (https://www.excelbanter.com/excel-discussion-misc-queries/196611-command-button-unhide-row.html)

Marilyn

command button to unhide row
 
Hello
I created 2 option buttons one says standard the other says Non-standard .
If Non-standard is selected I want rows 40 to 43 to unhide. IF standard is
selcted rows 40 to 43 should remain hidden. Thanks in advance !

Don Guillett

command button to unhide row
 
How about a toggle instead.
Sub togglehiderows()
rows("40:43").Hidden = Not rows("40:43").Hidden
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Marilyn" wrote in message
...
Hello
I created 2 option buttons one says standard the other says Non-standard
.
If Non-standard is selected I want rows 40 to 43 to unhide. IF standard
is
selcted rows 40 to 43 should remain hidden. Thanks in advance !




All times are GMT +1. The time now is 02:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com