Parse Precedents/Dependents from Formulas

btorrean

Board Regular
Joined
Dec 2, 2011
Messages
76
Dear Forum Users,

I have come upon a situation where I need to parse precedents/dependents from user formulas in a workbook. Excel's built-in '.Precedents' and '.Dependents' do not return all precedents or dependents. For example, if I have a two-sheet workbook and a formula on Sheet1 references a range on Sheet2, Excel does not return the Sheet2 dependent. Also, for named ranges, Excel returns the actual range address, not the name of the range. Does anyone have any insight into this?

Brian
 
Andrew,

Thanks for the reply. That works pretty well, though I should have been more clear. I am looking to trace precedents in code, but I also have a static list of formulas, from a report, that I have to parse. The formulas are currently stored as text. I need to pull out any references to named ranges and static cell ranges. The ranges can be in other workbooks, and are not linked to the report workbook in any way. Is there a way to do that? Should this be started as a separate thread? Thanks again for the help you have already provided!

Brian
 
Upvote 0

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