ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I have Excel autohide ranges basted on conditions? (https://www.excelbanter.com/excel-programming/320562-re-how-do-i-have-excel-autohide-ranges-basted-conditions.html)

gocush[_29_]

How do I have Excel autohide ranges basted on conditions?
 
Yes. try something like this

sub HideRange()

If Range("A1")=True Then 'or whatever your condition is
Range("MyRange").EntireRow.Hidden = True 'or EntireColumn
End If
End Sub

"Derek" wrote:

Does anyone know if there is a way to have Excel autohide rows or ranges
based on selected conditions?



All times are GMT +1. The time now is 12:29 PM.

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