+ Reply to Thread
Results 1 to 6 of 6

VBA to replace the charachter on the right with another character.

  1. #1
    Registered User
    Join Date
    10-28-2010
    Location
    Conroe, TX
    MS-Off Ver
    Office 2016
    Posts
    35

    VBA to replace the charachter on the right with another character.

    I would like to be able to replace the ending character on the far right side with a replacement character. The column where I need the replacement are the same.

    Example: in Column A is the following data
    2
    12
    22
    32
    42
    A02
    A12
    A32
    Needs to be:
    3
    13
    23
    33
    43
    A03
    A13
    A33
    If possible, when I click on the macro button I would like to be able tell tell the macro what I would like the last number to be changed to.

    Thanks

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: VBA to replace the charachter on the right with another character.

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    10-28-2010
    Location
    Conroe, TX
    MS-Off Ver
    Office 2016
    Posts
    35

    Re: VBA to replace the charachter on the right with another character.

    Thanks so much, that worked perfectly!

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: VBA to replace the charachter on the right with another character.

    You are very welcome.

  5. #5
    Registered User
    Join Date
    12-07-2018
    Location
    k.s.a
    MS-Off Ver
    2010
    Posts
    2

    Re: VBA to replace the charachter on the right with another character.

    God bless your efforts
    thank you

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,056

    Re: VBA to replace the charachter on the right with another character.

    Thank you for the kind words.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. replace EACH Nth occurrence a character in a string with another character
    By mattman7 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-23-2016, 12:23 PM
  2. [SOLVED] How to: Replace each character
    By jamiguel77 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-12-2013, 03:14 PM
  3. [SOLVED] Character count query
    By Christopherdj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2012, 12:46 AM
  4. [SOLVED] Exclude first charachter
    By StephanieH in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2006, 11:30 AM
  5. How to remove the ' charachter
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-19-2006, 02:55 PM
  6. How do I replace a character with another?
    By MosesX8 in forum Excel General
    Replies: 6
    Last Post: 06-11-2005, 05:05 AM
  7. How to replace the multiply (*) character
    By excelstart in forum Excel General
    Replies: 0
    Last Post: 02-02-2005, 04:45 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1