+ Reply to Thread
Results 1 to 7 of 7

Find / Replace text string using macro

  1. #1
    Forum Contributor
    Join Date
    10-06-2012
    Location
    Basel, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    157

    Find / Replace text string using macro

    Dear All,
    I would appreciate if you could help me find and replace strings using Excel macro:
    - "Family Number" to be replaced "Family no,"
    - "Subject*Matter" to be replaced by "Subject"
    - "Rev Date" to be replaced by "Date"
    - "Rev Action" to be replaced by "Action"
    - "Rev Comments" to be replaced by "Comments".

    I cannot find the keywords when I search them.
    Tahnk you so much.
    N
    Attached Files Attached Files
    Last edited by Niclal; 10-30-2016 at 04:50 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Find / Replace text string using macro

    So. Where's the code?
    Last edited by protonLeah; 10-30-2016 at 05:52 PM.
    Ben Van Johnson

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find / Replace text string using macro

    Post a sample workbook so we can see this data that is giving you problems, there may be an issue with it you are not aware of.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Find / Replace text string using macro

    my mistake - deleted
    Last edited by protonLeah; 10-30-2016 at 11:48 PM.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find / Replace text string using macro

    No, the OP said he can't seem to "Find" the text strings above when he searches. When I opened his workbook and try searching for those text strings, even though I see them in row1 the SEARCH tool doesn't seem to find them. It is odd.

    Looking it over now.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Find / Replace text string using macro

    Ok, the problem is in your SPACES between the words in A1 and B1. The normal ASCII CODE for spaces is 32. But the code for the spaces in A1 and B1 is 160.

    Where is this text coming from?

    Anyway, this seems to take care of it:

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Find / Replace text string using macro

    Why go and find them?
    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. [SOLVED] Formula to find a / in text string and replace it
    By Bobbbo in forum Excel General
    Replies: 3
    Last Post: 12-18-2015, 03:09 PM
  2. Find/Replace within String Text
    By Hejl82 in forum Excel General
    Replies: 1
    Last Post: 11-16-2015, 03:31 PM
  3. [SOLVED] Find a text/string and replace it
    By royalB in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2014, 08:29 AM
  4. [SOLVED] VBA to Search a Text String, Find a Value listed in another column and replace the text
    By Jschrod303 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2012, 08:56 PM
  5. Find and Replace text within string
    By Soulbringer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-22-2012, 12:30 PM
  6. Find a string of characters and then either keep the text or replace it
    By knitterkuba in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2010, 05:15 PM
  7. Excel - Find & Replace text in a string
    By bklim in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-14-2005, 02:37 AM

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