First time posting here and I'm relatively new to Excel in general. I created a macro that hides rows where every cell in that row lacks a numerical value. My macro is,
Sub Hide()
For Each Cell In Range("AB14:AB25")
If Cell.Value = "Hide" Then
Cell.EntireRow.Hidden = True
Else
Cell.EntireRow.Hidden = False
End If
Next Cell
End Sub
The range "AB14:AB25" refers to a column with an if statement that shoots out the value "hide" if each cell in that column is "N/A." The macro works but requires you to continuously and manually hit the macro button "Hide" whenever you change the relevant variable from the drop down menu (the table populates with data based on the variable you select from the drop down menu). So my question is, how do I make it so that the macro automatically triggers whenever you change or select a different variable from the drop down menu? Thanks in advance!
Bookmarks