+ Reply to Thread
Results 1 to 6 of 6

Replacing Texts in a Table Column using VBA

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Replacing Texts in a Table Column using VBA

    Hi,

    I have a table with a list of names that I need to replace. There are corresponding replacements for some of the names. The names that do not have replacement names should be retain it's original names. How do I automate this using VBA? The code should stop only until the last non-blank cell.

    thanks
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Replacing Texts in a Table Column using VBA

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Replacing Texts in a Table Column using VBA

    .
    Please Login or Register  to view this content.
    Paste into a routine module.

  4. #4
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Replacing Texts in a Table Column using VBA

    Thanks for the code. However, my range is dynamic and I will be updating the column from time to time. Can the code not be limited to specific range only?

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Replacing Texts in a Table Column using VBA

    What range in Col A will you be using ?

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Replacing Texts in a Table Column using VBA

    .
    If your used range in col A will be ever changing, you can utilize this macro instead:

    Please Login or Register  to view this content.

+ 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. Replacing a lot of cells with different texts
    By stan255 in forum Excel General
    Replies: 15
    Last Post: 04-19-2017, 01:03 AM
  2. Replies: 4
    Last Post: 01-07-2016, 03:27 AM
  3. Replies: 0
    Last Post: 05-29-2015, 01:25 PM
  4. [SOLVED] Finding up Duplicate Contain Texts Values from the Table & Display as Report
    By Sivashanmugam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-08-2015, 03:33 AM
  5. [SOLVED] problem with replacing texts that are like dates .....
    By green_boy in forum Excel General
    Replies: 5
    Last Post: 01-05-2014, 01:01 PM
  6. Replacing texts and cases
    By tsgucci in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-29-2011, 03:39 PM
  7. Separate texts with the : column, how!?
    By marky1990 in forum Excel General
    Replies: 1
    Last Post: 08-01-2011, 08:50 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