VBA code to list all circular references

kienleong

New Member
Joined
Mar 17, 2010
Messages
13
I am looking for a way to list in a sheet the cells and formulae that are involved in circular references. Any references involved in a circular chain will be contained on the same sheet.

I can see this property

ActiveSheet.CircularReference

That returns the range containing the FIRST circular reference of the range. I am trying to loop though a range and return every reference in the range in a list.

I can see the complete list of references here

Formulas > Formula Auditing > Error Checking > Circular References

and I would like this list of cells in a sheet.

There is some code here: http://support.microsoft.com/kb/125848

but it seems to overstate the list and include cells that have some interdependence but no circularity.

Anyone managed to do this?
 

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top