VBA test for circular reference

  • Thread starter Thread starter Ross
  • Start date Start date
R

Ross

How do I test that the range returned by
Set cllCircular = Worksheets("Solution
Block").CircularReference
is actually Nothing?
ie., If cllCircular = "" Then
doesn't work.
 
Ross,

This works for me:

Sub test()

Dim cllCircular As Range

Set cllCircular = Sheet1.CircularReference
If cllCircular Is Nothing Then
MsgBox "no circles"
Else
MsgBox cllCircular.Address
End If

End Sub

hth,

Doug
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top