macca_18380
New Member
- Joined
- May 15, 2024
- Messages
- 22
- Office Version
- 365
Hi All, and thank you again in advance. In a follow up to a post i made the other day about hiding rows based upon a condition, is it possible to do the same for columns? I have tried the below but struggling to get it to work. All help is much appreciated! Thank you, Michael
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$F$5" Then
Select Case Target.Value
Case "PPA Rate"
Columns("C:D").Hidden = True
Case "Dev Fee"
Rows("E:F").Hidden = True
End Select
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$F$5" Then
Select Case Target.Value
Case "PPA Rate"
Columns("C:D").Hidden = True
Case "Dev Fee"
Rows("E:F").Hidden = True
End Select
End If
End Sub