+ Reply to Thread
Results 1 to 3 of 3

Find partial text and replace entirely

Hybrid View

  1. #1
    Registered User
    Join Date
    08-16-2014
    Location
    Kuala Lumpur
    MS-Off Ver
    2010
    Posts
    19

    Find partial text and replace entirely

    Anyone have any idea to find partial text and replace it entirely. For example, in first row, the header contain Apple Juice. I want to make it become "Apple" only. Below code simply does not work & I cannot put the exact word because it has alot of Apple products. To simplify, I want to find all the header contain word " Apple" and replace with only "Apple".

    Range("A1:AZ1").Replace What:="Apple", Replacement:="Apple"

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,102

    Re: Find partial text and replace entirely

    See https://docs.microsoft.com/en-us/off....range.replace
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,957

    Re: Find partial text and replace entirely

    Range("A1:AZ1").Replace What:="*Apple*", Replacement:="Apple"
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ 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 Partial text and return value
    By Carlito72 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-15-2016, 04:47 PM
  2. Find and Select Text and Delete partial row
    By heuder in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-21-2015, 10:28 AM
  3. Find partial text in a range o cells
    By bbb13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-03-2015, 02:20 PM
  4. [SOLVED] Find the row number with a partial match to text in column A
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-10-2014, 01:39 PM
  5. [SOLVED] To find partial text
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-06-2013, 10:44 AM
  6. Replies: 1
    Last Post: 06-26-2013, 01:51 PM
  7. find in excel replace in word: find/replace text in text boxes and headers
    By dean.rogers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2012, 12:40 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