I have this code (it works) that show or hide rows in a sheet if a cell has a value that is not anything (someone wrote something in it) in another sheet. Ex. If I wrote something in B11, in the second sheet, it will show row 9 :
Private Sub Worksheet_Change(ByVal Target As Range) If Target.address = "B11" Then If Target.Value <> "" Then Sheets("Sheet2").Rows("9").EntireRow.Hidden = False Else Sheets("Sheet2").Rows("9").EntireRow.Hidden = True End If End IfEnd Sub
I'm looking for a way to adapt this code so that it only works if on the same row, but a different column in the first sheet, there's also a specific option that is selected in a drop-down list, like "success". Does somebody know how ?