A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Sure, you could use the worksheet change event: Copy this code, right-click the sheet tab, select "View Code" and paste the code into the window that appears. Change the cell address, values to act on, and rows to be hidden by each value. I have given you a few different ways of picking the rows....
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Target.Address <> "$A$2" Then Exit Sub
Application.EnableEvents = False
If Target.Value = "This" Then
Cells.EntireRow.Hidden = False
Rows(3).Hidden = True
Rows("6:9").Hidden = True
Range("A12").EntireRow.Hidden = True
End If
If Target.Value = "That" Then
Cells.EntireRow.Hidden = False
Rows(4).Hidden = True
Rows("10:11").Hidden = True
Range("A14").EntireRow.Hidden = True
End If
Application.EnableEvents = True
End Sub
Bernie