circular referecs - excel cannot caculate a formula. there is a circular...references that cause it cannot be listed for you

daveyc18

Well-known Member
Joined
Feb 11, 2013
Messages
707
Office Version
  1. 365
  2. 2010
ridiuclous....pops up when i insert rows (bottom left corner says "circular references"

but each sheet i go to there is no cell indicated

i tried even using this

Code:
Sub Find_Circular_References_In_All_Worksheets()
    Dim vItem, result, ws As Worksheet, sh As Worksheet, dRng As Range
    Set sh = Sheets.Add(After:=Sheets(Sheets.Count))
    Set dRng = sh.Range("A1")
    sh.DisplayRightToLeft = False
    For Each ws In ThisWorkbook.Worksheets
        On Error GoTo errHandler
        If ws.Name <> sh.Name Then
            With ws
                For Each vItem In .UsedRange
                    If Left(vItem.Formula, 1) = "=" Then
                        result = Intersect(.Range(vItem.Address), .Range(vItem.Precedents.Address))
                
                        dRng.Offset(, 0).Value = ws.Name
                        dRng.Offset(, 1).Value = vItem.Address(False, False)
                        dRng.Offset(, 2).Value = "'" & vItem.Formula
                        Set dRng = dRng.Offset(1)
                    End If
Skipper:
                Next vItem
            End With
        End If
    Next ws
    sh.Columns.AutoFit
    Exit Sub
errHandler:
    Resume Skipper
End Sub

but it finds nothing! freaking excel....
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
If it had a #REF error it wouldn't producing a circular reference.
Example below:
Range name used in C2 but formula in Range name refers to C2 > Circular Ref error

1666614386673.png
 
Upvote 0
If it had a #REF error it wouldn't producing a circular reference.
Example below:
Range name used in C2 but formula in Range name refers to C2 > Circular Ref error

View attachment 76917


nothing....but what do you know? i opened the file this morning and no circular references! only if that were the case last night and i could have finished my work faster

at any rate, thanks for your replies
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,939
Members
449,094
Latest member
teemeren

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