I have dropdowns in Cells(44,1) and Cells(44,6) with simple values of Yes or No
I am attempting to do a ByVal but I need allow the user to select in any order - meaning changing the value of Cells(44,6) first and Cells(44,1) second and vice versa.
I have tried AND in my statements as well and nothing seems to be working - I am pretty open at this point.
I am also going to need to put 7 more rows of these - but I am not sure if that would make a difference - the conditions are row based so (45,1) and (45,6) have no association to row 44's
I am attempting to do a ByVal but I need allow the user to select in any order - meaning changing the value of Cells(44,6) first and Cells(44,1) second and vice versa.
I have tried AND in my statements as well and nothing seems to be working - I am pretty open at this point.
I am also going to need to put 7 more rows of these - but I am not sure if that would make a difference - the conditions are row based so (45,1) and (45,6) have no association to row 44's
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = Cells(44, 1).Address Then
If Target.Value = "No" Then
If Cells(44, 6).Value = "No" Then
ThisWorkbook.Worksheets(8).Visible = False
Else
ThisWorkbook.Worksheets(8).Visible = True
End If
Else
ThisWorkbook.Worksheets(8).Visible = True
End If
End If
End Sub