Hello,
I've next code, working well. De code will look in cell 'Database!B9' Iwant to expand the code, so it will look in cel 'Database!B9 or 'Database!B10'.
How do I expand this code?
THANKS!!
I've next code, working well. De code will look in cell 'Database!B9' Iwant to expand the code, so it will look in cel 'Database!B9 or 'Database!B10'.
How do I expand this code?
THANKS!!
Code:
[CODE=vba]Private Sub Worksheet_Calculate()
Sheets("A100").Visible = True
Sheets("B200").Visible = True
Sheets("C300").Visible = True
Sheets("D400").Visible = True
Select Case Worksheets("Database").Range("B9").Value
Case Is = "1", "2"
Sheets("A100").Visible = False
Sheets("B200").Visible = False
Sheets("C300").Visible = False
Case "3", "4", "7", "8"
Sheets("B200").Visible = False
Sheets("C300").Visible = False
Case "13", "14"
Sheets("A100").Visible = False
Sheets("D400").Visible = False
End Select
End Sub