Altere para se adequar às suas necessidades
Public Sub UpdateFormula()
Dim r As Long, c As Long, n As Long, x As Long, a As Long
Dim lRow As Long
Dim rngSlct As Range
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
'Select the column you want to update. This can be multiple columns
Set rngSlct = Selection
With rngSlct
x = .Columns.count
'Loop through all the selected columns
For n = 1 To x
a = rngSlct(1, n).Column
lRow = Cells.Find(What:="*", After:=[A1], SearchDirection:=xlPrevious).row
c = a
With ActiveCell
For r = ActiveCell.row To lRow
If Left(Cells(r, c).Formula= "=If(" Then
Cells(r, c).Formula = 'Type your new formula here
End If
Next r
End With
Next n
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub