+ Reply to Thread
Results 1 to 5 of 5

Vba code to Replace data

  1. #1
    Forum Contributor
    Join Date
    09-21-2012
    Location
    greece,athens
    MS-Off Ver
    Excel professional plus 2016
    Posts
    157

    Vba code to Replace data

    Hallo my good friends.
    I need a code in order to replace data (kapital letters) with (numbers)given in a specific range of cells.
    Please take a look at the attachment.
    Thank youin advanced .
    Attached Files Attached Files
    Power! is knowledge...............

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Vba code to Replace data

    This is pretty easy to do using ASCII conversions. In my code, I'm subtracting 64 because the ASCII value of A is 65, B is 66, etc.

    If you need to change the conversion numbers in the future, you'll have to adjust the 64 accordingly.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Vba code to Replace data

    FWIW:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-21-2012
    Location
    greece,athens
    MS-Off Ver
    Excel professional plus 2016
    Posts
    157

    Re: Vba code to Replace data

    Many thanks to both of you.

  5. #5
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Vba code to Replace data

    You're welcome. Any reputation points (the * in the bottom of the posts) is appreciated.

+ 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. VBA Code to replace data in Greek and English
    By gkord in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2014, 08:12 AM
  2. Replace Macro recorded code with more effective code
    By scaffdog845 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-12-2014, 01:09 AM
  3. Comparing a Table with another data Table to replace with a Code
    By acsishere in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-28-2008, 01:26 PM
  4. find and replace - replace data in rows to separated by commas
    By msdker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2006, 08:10 PM
  5. Replies: 0
    Last Post: 09-27-2005, 09:05 AM

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