Consulting

Results 1 to 2 of 2

Thread: Unhide specifc row based on cell

  1. #1

    Unhide specifc row based on cell

    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.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •