I can't seem to get this code to cooperate as intended. I Think it's a simple logic error.
If Worksheets("input").Range("B31").Value = "?TEXT" Then Worksheets("Customer Report").Rows("22").EntireRow.Hidden = True Worksheets("Customer Report").Rows("23").EntireRow.Hidden = False Else Worksheets("Customer Report").Rows("23").EntireRow.Hidden = True Worksheets("Customer Report").Rows("22").EntireRow.Hidden = False End If The goal is that if cell B31 in Sheet 1 contains "Blah blah TEXT" then to hide row 22 and show row 23. If it just contains "Blah blah" then to show row 22 and hide row 23.