Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a spreadsheet that i want to hide columns a:H if the value in cell
L1="N" and unhide if theres a "Y". i'd prefer for the "macro" to be real-time based on when then N or Y changes. i got this code off the internet but it doesn't work consistently...i should have know better than to deviate from this faithful website:-) Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Range("L1").Value = "N" Then Columns("A:H").EntireColumn.Hidden = True Else Columns("A:H").EntireColumn.Hidden = False End If End Sub anyone?..... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Writing a macro to hide columns based on cell value | Excel Discussion (Misc queries) | |||
Automatic Hide group of a columns based on cel value | Excel Discussion (Misc queries) | |||
Is there a way to hide worksheets and/or rows/columns based on information enter into a particular cell of range of cells? | New Users to Excel | |||
How do I automatically hide columns in a worksheet based on a cell value? | Excel Worksheet Functions | |||
Is there a way to HIDE a row based on a value of a cell ? | Excel Discussion (Misc queries) |