Suppose I have some module in vba with some variable r of type Range. Suppose that, at some point, I store a Range object there (e.g. the active ce
r
Range
To test if a range object is currently invalid, I use this function:
Public Function InvalidRangeReference(r As Range) As Boolean On Error Resume Next If r.Count = 0 Then InvalidRangeReference = Err End If End Function