Results 1 to 2 of 2

Thread: VBA to replace the last character with a different character

  1. #1
    Neophyte idres's Avatar
    Join Date
    Jul 2021
    Posts
    2
    Articles
    0
    Excel Version
    2013

    VBA to replace the last character with a different character



    Register for a FREE account, and/
    or Log in to avoid these ads!

    I need a VBA that will:


    1 / Search in column "A" for words containing the last letter "m".


    2/ If found. Replace the last letter in each word with "s"


    Why this request?
    In my Arabic language, there is a complex letter that is formed according to the position of the word. Replacing everyone does not work, you will spoil the words
    If this letter comes at the beginning of the word or in the middle, there is no error. But at the end of the word, people write it in two forms, and this causes a problem when searchingClick image for larger version. 

Name:	33.jpg 
Views:	16 
Size:	47.3 KB 
ID:	10572

  2. #2
    Neophyte idres's Avatar
    Join Date
    Jul 2021
    Posts
    2
    Articles
    0
    Excel Version
    2013
    Thank you all . The question is over. I found the code at this link https://www.mrexcel.com/board/thread...acter.1177188/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •