0
Good morning, I have the following code IF returns "incompatible type" error, anyone know the reason? I’m trying to validate row values with columns.
Sub DeleteColumnByHeader()
Dim aCell As Range
Dim bCell As Range
For Each aCell In Range("C5:UZ5")
For Each bCell In Range("A1:A1044")
If aCell.Value = bCell.Value Then cell.EntireColumn.Delete
Next bCell
Next aCell
End Sub
Which is the line that returns the error?
– César Rodriguez