Experimente adicionar o comando de desativar os eventos no código que passei:
Sub Classificar_Frases()
Application.EnableEvents = False
Application.Goto Range("C5")
Do Until ActiveCell.Offset(0, -1).Range("A1").Value = ""
ActiveCell.Offset(0, 2).Range("A1").FormulaR1C1 = _
"=VALUE(MID(RC[-1],4,8))"
ActiveCell.Offset(0, 2).Range("A1").Value = ActiveCell.Offset(0, 2).Range("A1").Value
ActiveCell.FormulaR1C1 = _
"=RANK(RC[2],OFFSET(R1C5,MATCH(RC[-1],C[-1],0)-1,0,COUNTIF(C[-1],RC[-1])),1)+COUNTIF(OFFSET(R1C5,MATCH(RC[-1],C[-1],0)-1,0,COUNTIF(INDIRECT(""B5:B""&ROW()),RC[-1])),RC[2])-1"
Selection.NumberFormat = "General"
ActiveCell.Value = ActiveCell.Value
ActiveCell.Offset(1, 0).Range("A1").Activate
Loop
Application.EnableEvents = True
End Sub
Rafael Issamu F. Kamimura
Moderador Oficial Microsoft Community - MCC (Contribuidor do Microsoft Community)
http://zip.net/bjrt0X - http://zip.net/bhrvbR
Foi útil? Clique na mãozinha
Conheça: http://excelmaniacos.com/
Postado : 10/03/2015 4:58 am