+ Reply to Thread
Results 1 to 3 of 3

function to search and replace

  1. #1
    Registered User
    Join Date
    11-14-2008
    Location
    Texas
    Posts
    2

    function to search and replace

    Help! I am stuck writing a function that will search a column for specific text and replace it. Basically search column B for the text in cell C2, if the text in cell C2 is found in column B, replace the cell in B with the cell in D that is next to the cell in column C that was used for the search. I need this function to to go down column C and run the same process for all the cells. It sounds kind of confusing, but the attached xls should help explain it.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    You will need to use VBA to satisfy your requirements. The code below should work on your test example. Give it a try and report back if you need additional help.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-14-2008
    Location
    Texas
    Posts
    2
    Worked perfect, thanks.

    Quote Originally Posted by BigBas View Post
    You will need to use VBA to satisfy your requirements. The code below should work on your test example. Give it a try and report back if you need additional help.

    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)

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