Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Hide Rows
I am trying to get this code to work where if a user enters an X in a
range of cells a corresponding group of rows is hidden further down in the worksheet and I don't know what I am doing wrong. Private Sub Worksheet_Change(ByVal Target As Range) If Range("B5") = "X" Then Range("B9:B15").EntireRow.Hidden = True Else Range("B9:B15").EntireRow.Hidden = False End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro code to hide rows and not calculate hidden rows | Excel Discussion (Misc queries) | |||
Enabling option „Format rows“ to hide/unhide rows using VBA-code? | Excel Discussion (Misc queries) | |||
Code for Excel 2007 to hide rows based on sum of several rows not ina range | Excel Programming | |||
Specify which rows to NOT hide, and have excel hide the rest | Excel Programming | |||
Hide Rows - copy and paste only rows that show | Excel Worksheet Functions |