I have this code :
If Sheets("CM").Cells(a, b).Value = "" Then
Sheets("CM").Cells(a, b).Value = shouldBeValue
End If
And I want to refactor it to this one :
c = Sheets("CM").Cells(a, b)
If c.Value = "" Then
c.Value = shouldBeValue
End If
But I get an error "Expected Object" at the If line, I don't understand why.