Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7756067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:43:27+00:00 2026-06-01T12:43:27+00:00

I am trying to replace accented characters with regular characters. When I try to

  • 0

I am trying to replace accented characters with regular characters.

When I try to run the macro it doesn’t appear in the list.

Option Explicit

'-- Add more chars to these 2 string as you want
'-- You may have problem with unicode chars that has code > 255
'-- such as some Vietnamese characters that are outside of ASCII code (0-255)
Const AccChars = "ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðñòóôõöùúûüýÿ"
Const RegChars = "SZszYAAAAAACEEEEIIIIDNOOOOOUUUUYaaaaaaceeeeiiiidnooooouuuuyy"

Sub StripAccent(aRange As Range)
'-- Usage: StripAccent Sheet1.Range("A1:C20")
Dim A As String * 1
Dim B As String * 1
Dim i As Integer

For i = 1 To Len(AccChars)
A = Mid(AccChars, i, 1)
B = Mid(RegChars, i, 1)
aRange.Replace What:=A, _
Replacement:=B, _
LookAt:=xlPart, _
MatchCase:=True
Next

End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:43:28+00:00Added an answer on June 1, 2026 at 12:43 pm

    I do not see the option to run the macro in my macros list. The macro name is not appearing in the list to select. I have macros enabled and I have a bunch of others I use so I do not understand why it’s not showing. – BvilleBullet 4 mins ago

    Please see the comment in the above code.

    ‘– Usage: StripAccent Sheet1.Range(“A1:C20”)

    You have to call it like this

    Option Explicit
    
    '-- Add more chars to these 2 string as you want
    '-- You may have problem with unicode chars that has code > 255
    '-- such as some Vietnamese characters that are outside of ASCII code (0-255)
    Const AccChars = "ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïðñòóôõöùúûüýÿ"
    Const RegChars = "SZszYAAAAAACEEEEIIIIDNOOOOOUUUUYaaaaaaceeeeiiiidnooooouuuuyy"
    
    '~~> This is how you have to call it. Now You can see the macro "Sample" in the list
    Sub Sample()
        StripAccent Sheet1.Range("A1:C20")
    End Sub
    
    Sub StripAccent(aRange As Range)
        '-- Usage: StripAccent Sheet1.Range("A1:C20")
        Dim A As String * 1
        Dim B As String * 1
        Dim i As Integer
    
        For i = 1 To Len(AccChars)
            A = Mid(AccChars, i, 1)
            B = Mid(RegChars, i, 1)
            aRange.Replace What:=A, _
            Replacement:=B, _
            LookAt:=xlPart, _
            MatchCase:=True
        Next
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to replace accented characters with the normal replacements. Below is what
I'm trying to replace the programs that run from my startup directory with a
Am trying to replace content with empty using this regular expression. objRegExp.Pattern = <(?>/?)(?!(p|strong)(>|\s))[^<]+?>
I'm trying to replace in VIM all multiple - characters (from the start of
I am trying to replace all $ characters in a String expression like this
I'm trying to replace SWFUpload in Wordpress with Uploadify, because it's seems more customize
Trying to replace any non alpha-numeric characters with a hyphen. Can't see why it
I am trying to replace following statement with the lambda expression: List<ABC> l =
When trying to replace the content of an XML file in C#.NET with a
I'm trying to replace each , in the current file by a new line:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.