I borrowed (OK stolen) the following code off another website.
Sub HideRowCellTextValue()
StartRow = 14
LastRow = 25
iCol = 5
For i = StartRow To LastRow
If Cells(i, iCol).Value <> "0" Then
Cells(i, iCol).EntireRow.Hidden = False
Else
Cells(i, iCol).EntireRow.Hidden = True
End If
Next i
End Sub
This code does everything I want it to do but I would like it to auto-run when a cells value is changed.
The cells are all linked to another worksheet within the same workbook.
when a cells value is 0 I want to hide the entire row that the cell is in.