A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
try this sample,
(hide rows, from row 3 up to row 20, under conditions)
- linked cell is A1
- input range say, A22:A27 (a,b,c,d,e,f,g)
- assign macro is..
Sub macro_01()
Set rng = Range("A3:A20")
rng.EntireRow.Hidden = False
Select Case Range("A1")
Case Is = "1"
Range("A3:A8").EntireRow.Hidden = True
Case Is = "2"
Range("A9:A14").EntireRow.Hidden = True
Case Is = "3"
Range("A15:A20").EntireRow.Hidden = True
Case Else
rng.EntireRow.Hidden = False
End Select
End Sub
XXXXXXXXXXXXXXXXXXXX
another approach,
instead of ComboBox, you might use
a cell as drop down menu list
and..
replace, the macro (in regular module)
with
a Private Sub Change event