Hi, new to the forums. Great place for information. I've tried searching but have been unsucessful. I am trying to find a code that will unhide row 50 if cell B26 has the word "Yes". Can someone help with with this? I'd appreciate it.
Hi, new to the forums. Great place for information. I've tried searching but have been unsucessful. I am trying to find a code that will unhide row 50 if cell B26 has the word "Yes". Can someone help with with this? I'd appreciate it.
[vba]
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("B26")) Is Nothing Then
Me.Rows(50).Hidden = Target <> "Yes"
End If
ws_exit:
Application.EnableEvents = True
End Sub[/vba]
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber