Hello,
I'm currently using the following code to remove accent characters from a Worksheet:
I'm looking for a way to loop the code using arrays for both the Accent Characters and the Regular Characters.
I tried using a Function I found online, but that requires using a column to extract and replace the data. This method is a NO GO for me considering the amount of columns and data in many of the cells. A books summary is one example.
I've tried using other examples online, but they either replace characters in all upper or lowercase letters, or they use the active Selection and not the Active Sheet or Table.
Can anyone advise on the best approach to loop this code?
Thank you,
I'm currently using the following code to remove accent characters from a Worksheet:
VBA Code:
Sub RemoveAccents()
'Replace Lowercase
Cells.Replace What:="á", Replacement:="a"
Cells.Replace What:="é", Replacement:="e"
Cells.Replace What:="í", Replacement:="i"
Cells.Replace What:="ó", Replacement:="o"
Cells.Replace What:="ú", Replacement:="u"
'Replace Uppercase
Cells.Replace What:="Á", Replacement:="A"
Cells.Replace What:="É", Replacement:="E"
Cells.Replace What:="Í", Replacement:="I"
Cells.Replace What:="Ó", Replacement:="O"
Cells.Replace What:="Ú", Replacement:="U"
End Sub
I tried using a Function I found online, but that requires using a column to extract and replace the data. This method is a NO GO for me considering the amount of columns and data in many of the cells. A books summary is one example.
I've tried using other examples online, but they either replace characters in all upper or lowercase letters, or they use the active Selection and not the Active Sheet or Table.
Can anyone advise on the best approach to loop this code?
Thank you,