How can VBA be used to detect a circular reference error in Excel?
I'm using VBA to completely automate a report that's been partially automated by someone else. The partial automation sometimes produces an Excel "circular reference error." My VBA code needs to check for circular reference errors and perform actions when a circular reference error is found.
Here is the pseudocode for what the VBA script needs to do:
While (intI <= Sheets.Count) {
If (Sheets(intI) has circular error) {
;// Do stuff
}
intI = intI + 1
}
Any help will be greatly appreciated.
I'm using VBA to completely automate a report that's been partially automated by someone else. The partial automation sometimes produces an Excel "circular reference error." My VBA code needs to check for circular reference errors and perform actions when a circular reference error is found.
Here is the pseudocode for what the VBA script needs to do:
While (intI <= Sheets.Count) {
If (Sheets(intI) has circular error) {
;// Do stuff
}
intI = intI + 1
}
Any help will be greatly appreciated.