+ Reply to Thread
Results 1 to 3 of 3

Another case of Find & Replace from a List

  1. #1
    Registered User
    Join Date
    02-19-2011
    Location
    Quito
    MS-Off Ver
    Excel 2007
    Posts
    3

    Another case of Find & Replace from a List

    Hi All,

    I am frequently are generating Power Point presentations based on charts imported from Excel. Everything is initially developed in Spanish, but time & time again, we must translate contents to English and on ocassions to Portuguese.

    What I have been doing up to know in Excel is to include all my fixed texts with an =IF()... formula that changes the text depending on a "language setting" coded somewhere on that workbook. For example:

    Supposing I am on Sheet1, my language code is set in cell A2 (1=Spanish; 2=English);

    The formula I use in all my fixed text is something like: =if(Sheet1!$A$2=1;"Mi Texto";"My Text")

    Furthermore, all my charts are created using the normal references to ranges; and in the case of chart Titles, I am specifying these in reference to a "cell" that holds the "textual value" I need to show on the chart.

    So far this works, albeit the time it takes to change all fixed texts to include the "=IF().." formula noted above, not to mention the diminishng response time when apllying the above to data in tables to be further exploited through Pivot Tables.

    Given the same text is used more or less repetitively throughout all the worksheets we build , I was wondering if a better (faster, more efficient, standardized etc.) way to get this translation done could be to use a macro and a dictionary (in the form of a table) holding the terms we regularly use as well as their corresponding translation to the languages we require.

    I have read http://www.excelforum.com/excel-prog...from-list.html and this is could be something like the solution / macro I am looking for.

    I am attatching a small example of a spreadsheet, the idea would be to "replace" all text strings found in 'sheet1' using the list that appears on sheet 'dictionary'.

    Any help that could be provided and example code I could follow (I am very novice to macros and vbas) would be much appreciated.

    Kind regards, DMurray3
    Attached Files Attached Files

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Another case of Find & Replace from a List

    Hi DMurray3

    An easy way would be to fix the values in the "replace" code

    Please Login or Register  to view this content.
    place the in the worksheet module
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Another case of Find & Replace from a List

    Hi

    Perhaps you could do it like this.

    Instead of writing words on Sheet1 you link appropriate cell to your "dictionary" sheet and use a macro to copy the English or Spanish word "blocks" to a target range.

    Have a look at the file "TranslationExample2" and see if this fits your need.

    Alf
    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)

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