
Originally Posted by
swieduwi
Some what new at VB,

I will annotate my code a little better:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim a As String
a = ActiveSheet.Cells(x, y).Value ' x=row, y=column of cell you're checking
If a = "the value" Then ' "the value" is the value you are checking against
Sheets("Sheet1").Visible = False ' "Sheet1" = title of worksheet you want to hide
Sheets("Sheet2").Visible = True ' "Sheet2" = title of worksheet you want to show
Else
Sheets("Sheet2").Visible = False
Sheets("Sheet1").Visible = True
End If
End Sub
To put the code in the worksheet module, hit Alt-F11 to get into the VB Editor. On the left-hand side, right-click on the worksheet you are checking, and click "View Code". Cut and paste the above code sample into the module. Change x and y in the a=ActiveSheet.Cells(x,y).Value statement to reflect the actual cell you are checking against. Also change the Sheet names to reflect the sheets that you want to show (Visible = true) and hide (Visible = false).
I hope this clarifies everything.
Bookmarks