To get the cell that contains formula couple of useful properties are available in Excel VBA
1. HasFormula
2. SpecialCells(xlCellTypeFormulas)
HasFormula will give True or False depending on the availabiliy of formulas
whereas
SpecialCells(xlCellTypeFormulas) can be used to select all the cells that contain formula
cells.SpecialCells(xlCellTypeFormulas).Select
or Set rng = cells.SpecialCells(xlCellTypeFormulas)
For each Cll in Rng
' Each cell containing formula
Next
Cheers
Shasur
Thursday, December 14, 2006
Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.
what is the definition of a formula in Excel? is it just any cell that starts with an equals sign?
ReplyDelete