tlc53
Active Member
- Joined
- Jul 26, 2018
- Messages
- 404
Hi there,
I'm made some progress but not quite there with this code.
It correctly hides the rows if days = 365. However, I would also like it to hide the rows if it is blank (so 365 or Blank).
Also, I have headers on Rows 26:27. I would only like these rows to be visible if any of the results <> = 365 or Blank
Can someone help me out please? I've already spent waaaayyyyy too much time on this
Thank you!!
I'm made some progress but not quite there with this code.
It correctly hides the rows if days = 365. However, I would also like it to hide the rows if it is blank (so 365 or Blank).
Also, I have headers on Rows 26:27. I would only like these rows to be visible if any of the results <> = 365 or Blank
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Rows("28:28").Hidden = Range("I17").Value = 365
Rows("29:29").Hidden = Range("I18").Value = 365
Rows("30:30").Hidden = Range("I19").Value = 365
Rows("31:31").Hidden = Range("I20").Value = 365
Rows("32:32").Hidden = Range("I21").Value = 365
Rows("33:33").Hidden = Range("I22").Value = 365
Rows("34:34").Hidden = Range("I23").Value = 365
Rows("35:35").Hidden = Range("I24").Value = 365
End Sub
Can someone help me out please? I've already spent waaaayyyyy too much time on this

Thank you!!