Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Hi,
Try this code-
Sub CountFormulas()
Dim rng As Range, formula_cnt As Long
Dim cell As Range
formula_cnt = 0
For Each rng In Selection
For Each cell In rng
If cell.HasFormula Then
formula_cnt = formula_cnt + 1
End If
Next cell
Next rng
MsgBox formula_cnt
End Sub