I am trying to develop a macro that would loop through the cells in a workbook and identify the cells that contain formulas that have been "plugged". By "plugged" I mean the formula contains references to other cells but also contains a hard-coded amount(s).
Example formulas:
=A5*B7/C8
=134+44290+3912
=A5*B7+42
=OtherSheet!A3*OtherSheet!B4+56
The first two example formulas are fine. I need to identify the third and fourth formulas.
I was using the Precedents property to find formulas that contain cell references but I need to be able to identify cells that contain references to other worksheets as well so I don't think Precedents is going to work for me. Everything I've read says it only works on the activesheet.
Does anyone know a way around this?
Also, after I identify the formulas that have cell references, I need to determine whether the formula has been "plugged". Does anyone have any ideas on how to parse up the formula and decide if it has been "plugged"?
Example formulas:
=A5*B7/C8
=134+44290+3912
=A5*B7+42
=OtherSheet!A3*OtherSheet!B4+56
The first two example formulas are fine. I need to identify the third and fourth formulas.
I was using the Precedents property to find formulas that contain cell references but I need to be able to identify cells that contain references to other worksheets as well so I don't think Precedents is going to work for me. Everything I've read says it only works on the activesheet.
Does anyone know a way around this?
Also, after I identify the formulas that have cell references, I need to determine whether the formula has been "plugged". Does anyone have any ideas on how to parse up the formula and decide if it has been "plugged"?