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
No comments:
Post a Comment