LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Circular Cell Find

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me find a circular reference cells located in unknown multita John7100 Excel Discussion (Misc queries) 2 April 30th 10 01:55 AM
Circular or semi-circular chart DKS Charts and Charting in Excel 3 November 3rd 09 01:50 PM
Works spreadsheet-find circular ref. dino Excel Worksheet Functions 1 October 22nd 07 05:52 PM
find/verify circular references GoBobbyGo Excel Discussion (Misc queries) 3 October 19th 07 09:53 PM
circular error w/o cell reference Remote Todd Excel Discussion (Misc queries) 1 August 11th 05 12:49 PM


All times are GMT +1. The time now is 01:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"