Hi all!
I want to hide an entire row, if cell in column B and Column C is blank. I m using the below code but getting an error type Mismatch 13 and highlighting the.lr = Range("REMARKS1")
My Data Starts at 190 and ends at 325; hence I am named that range as "Remarks1"
Column C contains formulas.
I am using the below code:
Sub HideBlanks() Dim lr As Long, i As Long lr = Range("REMARKS1") For i = 190 To lr ' check B, C, to see if blank If Range(Cells(i, "B"), Cells(i, "C")) = "" Then Rows(i).Hidden = True 'hide row End If Next i End Sub
Bookmarks