Hello,

I am so close to having a working code. The problem is I need the VBA code to read the results of the value in the cell, not that there is a formula in the cell. Here is the code and I’ll explain a little better.

Private Sub Worksheet_Change(ByVal Target As Range)


  If Target.Cells.Count > 1 Then Exit Sub
  
  If Not Intersect(Target, Range("A2:A40")) Is Nothing Then
     Select Case UCase(Target)
       Case Is = "H"
         Target.EntireRow.Hidden = True
       Case Is <> ""
         Target.EntireRow.Hidden = False
      End Select
  End If
  
ActiveWorkbook.RefreshAll


End Sub
Ultimately, if there is an “H” returned by the formula in a cell A2:A40, (on the ‘Summary' sheet) then hide the row, if not, show the row, and when done checking A2:A40 update all the tables in the whole Workbook.

This should happen automatically when a different sheet (‘Case Type’) in the workbook is updated that the formulas in this sheet are looking at.

Here is the code on the ’Summary’ sheet in cells A2:A40:

=IF(LEN('Case Type'!A5)=9,'Case Type'!A5,"H")
Anyways- it all works fine when I manually type an “H” into one of the cells in between A2 and A40 on the ’Summary’ sheet, but when the formula returns an “H” it doesn’t work because the VBA only sees the formula, not the Value returned.

Would someone please help either correct the code I have or suggest a new one that accomplishes the underlined mission above?

All help is appreciated. Thank you!!