Results 1 to 7 of 7

How to find and replace a word in a sentence with VBA

Threaded View

  1. #1
    Registered User
    Join Date
    02-10-2010
    Location
    Sacramento, Ca, USA
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    33

    Question How to find and replace a word in a sentence with VBA

    Hi you all
    I have a table where I have two columns and in one of them there are names and in the other there should be numbers. The problem is that in the name column there are sometimes just the last name and sometimes the full name including title. I want to enter a specified number in column 2 if the name in column 1 contains "Moore". That would include Mr Simon Moore or Moore or MR Moore or Simon Moore.
    I know it is possible, but I think I was sick the day we learned how to do it. Can you please help.
    Gunilla
    Last edited by Gunilla; 04-20-2010 at 09:52 PM.

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