Hi there,
I have this error each time I add a new row.
Here's the code;
Public Function OneCellBlank(ByRef MyRange As Range) As Boolean
Dim X As Range
OneCellBlank = False
For Each X In MyRange
If Trim(X.Value) = "" Then
OneCellBlank = True
Exit Function
End If
Next X
End Function
and the line " For Each X In MyRange " is highlight.
Can someone understand why?
Regards
I have this error each time I add a new row.
Here's the code;
Public Function OneCellBlank(ByRef MyRange As Range) As Boolean
Dim X As Range
OneCellBlank = False
For Each X In MyRange
If Trim(X.Value) = "" Then
OneCellBlank = True
Exit Function
End If
Next X
End Function
and the line " For Each X In MyRange " is highlight.
Can someone understand why?
Regards