The following snippet highlights all cells that contain formula
Sub HighLight_Formula_Cells()
Dim oWS As Worksheet
Dim oCell As Range
Set oWS = ActiveSheet
For Each oCell In oWS.Cells.SpecialCells(xlCellTypeFormulas)
oCell.Interior.ColorIndex = 36
MsgBox oCell.Formula
Next oCell
End Sub
hi,
ReplyDeletei have a excel file with 4 tabs,
each tab has fields with formulas,
and these formula uses lookup to use values from other tabs for calculations,
i wanted to extract all formulas from all fields,
is it possible in any way, other than manual copy+paste