Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 447

Show row in a second sheet based on a cell being filled in a first sheet but conditionaly to a drop-down list choice selected in the same column (vba)

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>