+ Reply to Thread
Results 1 to 2 of 2

Find and change the word

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    63

    Find and change the word

    Hi,

    I want to either a Macro/VBA or a formula to be able to search for a specific word and change it.

    For example:
    If in any cell in column A it contains the word USA or Usa or usa THEN CHANGE TO United States of America
    However I don't just want to do this for this word/destination, I want to to do this with lots of them. So some how a way of adding more but I don't want to change any other word in that cell.

    Column A would go from this
    USA Alabama
    Usa Delaware
    UsA Utah

    To This:

    United States of America Alabama
    United States of America Delaware
    United States of America Utah

    Basically away of finding and replacing with a click of a button instead of actually finding and replacing and having to enter them in one by one all the time.

    Is this possible?


    Thanks for any help in advance
    Last edited by Chantal4130; 06-09-2014 at 08:51 AM. Reason: Incorrect

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Find and change the word

    range("a:a").select
    selection.replace("USA","United states of America")
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

+ 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. find one word and change fomate of just that word
    By sherry0211 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-13-2013, 09:35 AM
  2. Find a word and change font color
    By bbqmikeq in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-28-2012, 12:43 PM
  3. Replies: 3
    Last Post: 06-06-2009, 12:17 PM
  4. [SOLVED] macro -find all occurences of a word-change color of cell of all
    By Lost in Alabama in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2006, 09:50 AM
  5. [SOLVED] Find and replace of word causes change of font formatting
    By jwa90010 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-22-2005, 04:05 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