Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using Chip Pearsons recommended code snippet to see
if a cell is circular: If Not Application.Intersect(rng, rng.Precedents) Is Nothing Then CellIsCircular = True End If However it fails when it comes across a cell which does not have a formula. So I added a test for a formula: If rng.HasFormula = True Then If Not Application.Intersect(rng, rng.Precedents) Is Nothing Then CellIsCircular = True Else CellIsCircular = False End If End If End Function However it seems to fail when indeed there is a precedent but not on the same sheet as the cell. Is this becauase the precedent property on list precedents on the same sheet as the cell in question? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help me find a circular reference cells located in unknown multita | Excel Discussion (Misc queries) | |||
Circular or semi-circular chart | Charts and Charting in Excel | |||
Works spreadsheet-find circular ref. | Excel Worksheet Functions | |||
find/verify circular references | Excel Discussion (Misc queries) | |||
circular error w/o cell reference | Excel Discussion (Misc queries) |