+ Reply to Thread
Results 1 to 11 of 11

Is it possible to use VBA to control the Microsoft Translator

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Is it possible to use VBA to control the Microsoft Translator

    I just discovered the microsoft translator in excel to translate things from one language to another. I have a need of translating "addresses" in english to some other language and i would like to do this via vba. But when i use the "macro-recorder" with the translator.............i get nothing which would indicate how ot use the translator via vba.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Is it possible to use VBA to control the Microsoft Translator

    Addresses don’t need translating ... what exactly do you want to translate? Is it the country?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Is it possible to use VBA to control the Microsoft Translator

    the addresses i was referring to was like street addresses or home addresses..........basically translate a street or home or business address.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Is it possible to use VBA to control the Microsoft Translator

    OK - sorry to ask, but to what end? An address is like someone's name - it doesn't change, regardless of the language you are using.

  5. #5
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Is it possible to use VBA to control the Microsoft Translator

    i have addresses in english that i need to convert to Ukraine. Thats it. There is a translate tool inside excel that when i do it manually works good enough......but i cant figure out how to automate it using excel

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Is it possible to use VBA to control the Microsoft Translator

    Ah! You mean that you want them converting phonetically into Cyrillic script? That's NOT translation, it's transliteration.
    Last edited by AliGW; 07-09-2020 at 09:24 AM. Reason: Typo corrected.

  7. #7
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Is it possible to use VBA to control the Microsoft Translator

    there is a "translate" button under the review menu that does what i want.....but for some reason i cant access it via vba or at least i dont know how

    anyone have any ideas?

  8. #8
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Is it possible to use VBA to control the Microsoft Translator

    If that does what you want, then use:

    Please Login or Register  to view this content.
    Rory

  9. #9
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: Is it possible to use VBA to control the Microsoft Translator

    thanks i will try it but to be honest i am not sure how to "try" this one line of code.......how do i specify the txt to translate and where is the "from" and "to" language specification.

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Is it possible to use VBA to control the Microsoft Translator

    You don't - that is just the exact equivalent of clicking the Translate button. I don't know if the actual Translate functionality is programmable.

  11. #11
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Is it possible to use VBA to control the Microsoft Translator

    There are couple of different iteration of this feature. Non of them exposes control to vba. Since, it's pretty much Web API call and not processed locally.

    If you need to automate translation process, you'll need to write code to leverage Google Translate, MS Translator (Azure Cognitive Service) via Web API request.

    Alternately, you can pilot IE and scrape information from translation sites.
    Ex:
    https://stackoverflow.com/questions/...text-using-vba
    Last edited by CK76; 07-09-2020 at 09:58 AM. Reason: Grammar
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

+ 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. Microsoft translator
    By svg3414 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2017, 01:24 AM
  2. Use the built-in Microsoft translator from VBA
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-09-2016, 07:40 PM
  3. Help with Microsoft ProgressBar Control
    By newcoder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2011, 07:21 AM
  4. Microsoft Spreadsheet Control?
    By TCook in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-22-2005, 09:00 AM
  5. Microsoft Calendar Control
    By Richard Mogy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-07-2005, 12:06 AM
  6. Microsoft Calender Control 11.0
    By akim612 in forum Excel General
    Replies: 1
    Last Post: 01-19-2005, 07:06 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