Sub Worksheet_change(ByVal Target As Range)
If Target.Address = "$C$1" Then
Select Case Target.Value
Case Is = "House"
Sheet1.Range("D:ZZ").EntireColumn.Hidden = True
Sheet1.Range("D:F").EntireColumn.Hidden = False
Case Is = "Car"
Sheet1.Range("D:ZZ").EntireColumn.Hidden = True
Sheet1.Range("G:I").EntireColumn.Hidden = False
Case Is = "Dog"
Sheet1.Range("D:ZZ").EntireColumn.Hidden = True
Sheet1.Range("J:L").EntireColumn.Hidden = False
Case Is = "Cat"
Sheet1.Range("D:ZZ").EntireColumn.Hidden = True
Sheet1.Range("M:O").EntireColumn.Hidden = False
End Select
End If
If Target.Address = "$C$2" Then
Select Case Target.Value
Case "Daily"
Call Daily
Case "Weekly"
Call Weekly
Case "Monthly"
Call Monthly
End Select
End If
Sub Worksheet_change(ByVal Target As Range)
If Target.Address = "$C$1" Then
Select Case Target.Value
Case Is = "House"
Sheet1.Range("D:ZZ").EntireColumn.Hidden = True
Sheet1.Range("D:F").EntireColumn.Hidden = False
Case Is = "Car"
Sheet1.Range("D:ZZ").EntireColumn.Hidden = True
Sheet1.Range("G:I").EntireColumn.Hidden = False
Case Is = "Dog"
Sheet1.Range("D:ZZ").EntireColumn.Hidden = True
Sheet1.Range("J:L").EntireColumn.Hidden = False
Case Is = "Cat"
Sheet1.Range("D:ZZ").EntireColumn.Hidden = True
Sheet1.Range("M:O").EntireColumn.Hidden = False
End Select
End If
If Range("$C$2").Text = "Daily" Then
Call Daily
End If
If Range("$C$2").Text = "Weekly" Then
Call Weekly
End If
If Range("$C$2").Text = "Monthly" Then
Call Monthly
End If
End Sub