Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello
I created the code below but it does not work - gives the error of "Ambiguous name detected: worksheet_Change" so, this is what I want .... for this worksheet only if cell B 29 equals "Spec" or "blanket" then unhide rows 35 thru 37 if cell B29 equals "Biology" then unhide row 34 Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = Range("B29").Address Then If Target = "Spec" Or Target = "Blanket" Then Rows("35:37").Select Selection.EntireRow.Hidden = False If Target = "Biology" Then Rows("34").Select Selection.EntireRow.Hidden -False End If End If End If End Sub thank you so much |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deliberately ambiguous time format? (No AM/PM) | Excel Discussion (Misc queries) | |||
Help Please, Worksheet Change | Excel Worksheet Functions | |||
Ambiguous error | Excel Discussion (Misc queries) | |||
Worksheet Change event | Excel Discussion (Misc queries) | |||
why does ON = Ambiguous in substitution formula? | Excel Worksheet Functions |