Hello,
Relatively new to the VBA function.
Working on building a checklist that automatically shows and hides specific rows based on the option selected from the dropdown.
The Dropdown options: "BOV, Off Market Flyer"
After searching a few forums below is the code:
---------------
Private Sub worksheet_change(ByVal Target As Range)
If Range("D15") = "BOV" Then
Rows("16:51").EntireRow.Hidden = False
Else
Rows("16:51").EntireRow.Hidden = True
End If
If Range("D15") = "Off Market Flyer" Then
Rows("52:54").EntireRow.Hidden = True
Else
Rows("52:54").EntireRow.Hidden = False
End If
End Sub
--------------
The macro seems to work, however, there is no change when either option is selected.
Please advice and Thank you in advance!
Relatively new to the VBA function.
Working on building a checklist that automatically shows and hides specific rows based on the option selected from the dropdown.
The Dropdown options: "BOV, Off Market Flyer"
After searching a few forums below is the code:
---------------
Private Sub worksheet_change(ByVal Target As Range)
If Range("D15") = "BOV" Then
Rows("16:51").EntireRow.Hidden = False
Else
Rows("16:51").EntireRow.Hidden = True
End If
If Range("D15") = "Off Market Flyer" Then
Rows("52:54").EntireRow.Hidden = True
Else
Rows("52:54").EntireRow.Hidden = False
End If
End Sub
--------------
The macro seems to work, however, there is no change when either option is selected.
Please advice and Thank you in advance!