Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello all,
First Special thanks to Dave Peterson for his off-forum help. The following code does what I want, hiding/unhiding a row based o whether a cell on another worksheet is blank/non-blank, respectively: Option Explicit Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count 1 Then Exit Sub If Intersect(Target, Me.Range("c5")) Is Nothing Then Exit Sub On Error GoTo errHandler: With Target Application.EnableEvents = False Worksheets("Trade Output").Range("A6").EntireRow.Hidden CBool(.Value = "") End With errHandler: Application.EnableEvents = True End Sub This code, as you can see, hides/unhides ROW 6 based on c5. I want t likewise mode ROWS 7 and 8 based on d5 and e5, respctively. I am still too green in VBA to confidently tweak properly. Any help i modifying the above code would be great appreciated. Thanks all, James -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hiding/Exposing Rows based on a cell value | Excel Worksheet Functions | |||
Hiding rows based on a cell? | Excel Worksheet Functions | |||
hiding or showing rows based on a cell value | Excel Discussion (Misc queries) | |||
Hiding rows based value of cell within row | Excel Discussion (Misc queries) | |||
Hiding rows based on cell content | Excel Programming |