+ Reply to Thread
Results 1 to 6 of 6

Multiple find and replace for multiple sheets

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    Japan
    MS-Off Ver
    Excel 2007
    Posts
    3

    Talking Multiple find and replace for multiple sheets

    Hi guys,

    I am trying to solve this but I am not familiar with macros so here I am.

    I am trying to translate the document but since there is a lot to work on manually, would like to utilize a macro to solve this, and would like your help.

    I have a translation table with somethng about 700 lines
    Japanese(column A) to English (column B).

    There are multiple sheets, in total of 7 sheets with cells scattered with Japanese texts.

    Translation table is like the following.
    Column A Column B
    1 Aaaaaa Bbbbbb
    2 Cccccc Dddddd
    3 .... .....
    700 Yyyyy Zzzzz

    Then other sheets include pictures and text boxes, memos and text cells scattered all over the sheets.

    I converted the file into a text file for easier translation and put them back in the excel file after adding a new sheet.

    I would like to replace all texts in separate 7 multiple sheets according to the translation table located in the last sheet. Unfortunately I can't disclose the document, but I can prepare a sample if needed.

    Also, it might help to replace as if it finds first 15 or less strings of characters in Japanese to replace with english sentences since there are many similar texts.(wildcard-ish behavior)

    Could please anyone help? Thank you in the advance!

  2. #2
    Registered User
    Join Date
    08-02-2012
    Location
    ME, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple find and replace for multiple sheets

    I hope I understand your question because it sounds like you want to do a lot of different find and replace statements. If so, I just recently found two codes from different forums that brings up a "Search for/Replace" text box so that you can manually enter what you want to Search for and Replace.

    Cited External Link1 Here
    Please Login or Register  to view this content.
    Cited External Link2 Here
    Please Login or Register  to view this content.

    However, if you know exactly what you want to replace text with for all 7 texts. Then you can restructure this:
    Please Login or Register  to view this content.
    Many thanks and best regards,
    CJ

  3. #3
    Registered User
    Join Date
    01-24-2013
    Location
    Japan
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Multiple find and replace for multiple sheets

    Hey thanks for that. I have 700 text cells that contain over 15000 words to replace, not 7 texts.

    2 and 3 is out, since this is for the specific assignment
    but 1 might work but not the full macro I want to use. Thanks!

  4. #4
    Registered User
    Join Date
    01-24-2013
    Location
    Japan
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Multiple find and replace for multiple sheets

    I also tried this one out but didn't work...
    Please Login or Register  to view this content.
    Last edited by geedaigo; 01-25-2013 at 12:37 AM.

  5. #5
    Registered User
    Join Date
    08-02-2012
    Location
    ME, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple find and replace for multiple sheets

    Ok, I did some searching and found someone who declared a similar issue in regards to utilizing a Worksheet to define the "Find" & "Replace" info:

    For example:

    Cells A2 to A48 in workbook1 contains a list of many different values (Peugeot, Alfa Romeo, Ford, Renault etc...) and in cells B2 to B48 are their corresponding decimal values that need to replace them in another workbook (workbook2).

    In Column A of workbook2 has thousands of instances of the values present in A2 to A48 of workbook1. The numeric values from B2 to B48 (lets say ford = 0.1 and peugeot = -0.4) need to replace the original text data in column A of workbook 2. (so 0.1 replaces ford and -0.4 replaces peugeot) - Macros/VBA Code for repetitive 'find and replace'
    There are 4 pages of comments, so I will only re-post the code that was suggested, and follow the MsgBox instructions:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-02-2012
    Location
    ME, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Multiple find and replace for multiple sheets

    Ok, I had some time on my hands, download the documents and open VBA.xlsm to try this code:
    Please Login or Register  to view this content.

    Sometimes I read to quickly and need to revisit the details, I hope this helps and if it isn't I'll go over it again.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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