Hello friends, I created a macro to replace some characters. It worked for a while an today, when i tried to run it again, nothing happens! If I got through f8 process it "sees that "p" is >0 but the "Then Mid(temp, i, 1) = Mid(codiB, p, 1)" does not replace anything. Does anybody knows whats going on? The macro is Sub Substituir_Acento() Sheets("Preencher").Select codiA = "àáâãäèéêëìíîïòóôõöùúûüÀÁÂÃÄÈÉÊËÌÍÎÒÓÔÕÖÙÚÛÜçÇñÑabcdefghijklmnopqrstuvwxyz" codiB = "aaaaaeeeeiiiiooooouuuuAAAAAEEEEIIIOOOOOUUUUcCnNABCDEFGHIJKLMNOPQRSTUVWXYZ" For z = 2 To 8 Cells(3, z).Select Do While ActiveCell <> Empty And Row < 10 temp = ActiveCell For i = 1 To Len(temp) p = InStr(codiA, Mid(temp, i, 1)) If p > 0 Then Mid(temp, i, 1) = Mid(codiB, p, 1) Next ActiveCell.Offset(1, 0).Select Loop Next End Sub