HockeyDiablo
Board Regular
- Joined
- Apr 1, 2016
- Messages
- 182
Good afternoon, looking to remove some rows if cells equaled a certain text
Rows 17-19 ~ AT11 = MS18
Rows 20-22 ~ AT12 = FB18
Rows 23-25 ~ AT13 = STS18
Rows 26-28 ~ AT14 = MH18
Rows 29-31 ~ AT15 = FS18
Rows 32-34 ~ AT16 = SFS18
Here is what I have researched thus far but it can only do one?
Apparently "Worksheet_Change" is something I have never encountered. Thanks
J
Rows 17-19 ~ AT11 = MS18
Rows 20-22 ~ AT12 = FB18
Rows 23-25 ~ AT13 = STS18
Rows 26-28 ~ AT14 = MH18
Rows 29-31 ~ AT15 = FS18
Rows 32-34 ~ AT16 = SFS18
Here is what I have researched thus far but it can only do one?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Rows("26:28").EntireRow.Hidden = IIf(UCase(Range("AT14")) = "MH18", False, True)
End Sub
Apparently "Worksheet_Change" is something I have never encountered. Thanks
J
Last edited: