Hi All,
I hope you are well. I hope you can assists me with the following:
I used to have a code running from one cell selection and it looked like the following:
Te latter part of the code I've added with the introduction of a new function, however it does not work as some lines will be unhidden due to the latter part of the code. Now I was wondering if their is not a code similar to that of a "If AND"Function? I hope I make sense. Any help would be greatly appreciated.Option Explicit Public sheetactivated As Boolean Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$C$103" Then If Range("'Client info'!C103").Value = "Large Enterprise" Then Sheets("Skills Spend & Learnerships").Rows("1:153").EntireRow.Hidden = False Sheets("Skills Spend & Learnerships").Rows("154:422").EntireRow.Hidden = True End If End If If Target.Address = "$C$102" Then If Range("'Client info'!C102").Value = "Yes" Then Sheets("Skills Spend & Learnerships").Rows("135").EntireRow.Hidden = False Sheets("Skills Spend & Learnerships").Rows("140").EntireRow.Hidden = True Sheets("Skills Spend & Learnerships").Rows("230").EntireRow.Hidden = False Sheets("Skills Spend & Learnerships").Rows("235").EntireRow.Hidden = True ElseIf Range("'Client info'!C102").Value = "No" Then Sheets("Skills Spend & Learnerships").Rows("135").EntireRow.Hidden = True Sheets("Skills Spend & Learnerships").Rows("140").EntireRow.Hidden = False Sheets("Skills Spend & Learnerships").Rows("230").EntireRow.Hidden = True Sheets("Skills Spend & Learnerships").Rows("235").EntireRow.Hidden = False End If End If End Sub
Bookmarks