+ Reply to Thread
Results 1 to 19 of 19

Excel Vba to use detect language

  1. #1
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Excel Vba to use detect language

    i need somebody to help me i need vba to use this function

    DETECTLANGUAGE( cell)
    Last edited by 6StringJazzer; 10-30-2023 at 09:53 AM. Reason: fixed typo in title

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Excel Vba to use detect langquage

    What is the expected results?
    Quang PT

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Excel Vba to use detect langquage

    Everything I found on the ".net" said it is not possible to use VBA and detect a language.
    Several sites said you could use Google API to determine the language and plug the result into Excel.
    Only one site said it was possible using an UDF which is presented below (untested here) :

    Please Login or Register  to view this content.
    Find the above at : https://answers.sap.com/questions/43...vba-code-.html

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Excel Vba to use detect langquage

    If you are looking for something equivalent to Google Sheets' DETECTLANGUAGE() function (which appears to be connected to the Google Translate API), this youtube video appears to know something about it: https://www.youtube.com/watch?v=_J1g8IeM8v8

    I'm not sure exactly how Google's pricing structure works, but I know that it is not always free to use their APIs.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Excel Vba to use detect langquage

    It will probably be easier to just use Google Sheets.

    https://docs.google.com/spreadsheets...it?usp=sharing
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Re: Excel Vba to use detect langquage

    hell bro, i need to use the formula DETECTLANGUAGE( cell) in Excel to know the cell language like Google sheet with multi-database but my problem with Google sheet is not see results with a lot of cell lines so i looking for Excel Vba work like google sheet with formula DETECTLANGUAGE ( all language)

  7. #7
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Re: Excel Vba to use detect langquage

    not work brother with alot of cell line , i tested but no result with big database this my problem with google shhet for this formula

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Excel Vba to use detect language

    Please see Logit's post #3 above

  9. #9
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Re: Excel Vba to use detect language

    not work brother

  10. #10
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Re: Excel Vba to use detect langquage

    6StringJazzer i tested but no result do you have another way brother or do you have Google Sheet vba formula working with Google Sheet but set timing between per request ,
    waiting your feedback
    Last edited by mohamedabdo; 10-31-2023 at 09:54 AM.

  11. #11
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Re: Excel Vba to use detect langquage

    bebo021999 brother i am happy because you are here i want to work like Google sheet formula to detect language with all language source
    Last edited by mohamedabdo; 10-31-2023 at 09:55 AM.

  12. #12
    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,951

    Re: Excel Vba to use detect language

    Whom are you addressing in each of these posts? Instead of using the generic 'bro', please use forum user names.
    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.

  13. #13
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Re: Excel Vba to use detect language

    Ok sorry Mrsaligw noted

  14. #14
    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,951

    Re: Excel Vba to use detect language

    It's just AliGW, please.

    Go back and add to each post the person you are addressing.

    A response like "not work" is absolutely useless to your helpers, by the way.
    Last edited by AliGW; 10-31-2023 at 09:53 AM. Reason: Typo fixed.

  15. #15
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Excel Vba to use detect langquage

    Quote Originally Posted by mohamedabdo View Post
    6StringJazzer i tested but no result do you have another way brother or do you have Google Sheet vba formula working with Google Sheet but set timing between per request ,
    waiting your feedback
    I posted a link to an example that used your data (what happened to your file attachment, by the way?). What exactly do you mean "no result"?

  16. #16
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Re: Excel Vba to use detect langquage

    Good morning brother 6StringJazzer pls see attached not work no result after i added to my excel
    Attached Files Attached Files

  17. #17
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Excel Vba to use detect language

    Sorry habibi I think we are having some communication trouble. I recommended that you simply use Google Sheets instead of Excel because this feature is built in. I gave you a link to a Google Sheets with the DETECTLANGUAGE function on the data you provided. I do not understand the problem you are having with Google Sheets:
    not see results with a lot of cell lines
    Logit provided a VBA solution in post #3 which I have not tested myself, and MrShorty provided a link in post #4 to a video that shows a solution, which I have also not tried.

    If you try any of these solutions but they do not work, it is very important for you to tell us what is not working. Tell us what you expect to happen, and what happens instead. Shukrun.

  18. #18
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Excel Vba to use detect langquage

    Quote Originally Posted by Logit View Post
    Only one site said it was possible using an UDF which is presented below (untested here) :
    The OP wants to detect the language of text in an Excel sheet. That is not what this function does; it returns the Registry system language setting for the user. I tried it and it raised an error, so defaulted to English.

  19. #19
    Registered User
    Join Date
    10-08-2023
    Location
    egypt
    MS-Off Ver
    2010
    Posts
    35

    Re: Excel Vba to use detect language

    pls give me access to try it, brother 6StringJazzer

+ 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. Replies: 3
    Last Post: 07-06-2023, 09:17 PM
  2. Replies: 1
    Last Post: 11-16-2019, 12:03 PM
  3. [SOLVED] Detect Language excel is in
    By Xenthys in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2017, 08:15 PM
  4. Detect “pure” alphabets in excel
    By anufed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2016, 07:42 AM
  5. Can i detect if the PC is lcoked using Excel-VBA
    By mzighari in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2013, 04:36 AM
  6. detect excel open
    By ilkamalo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2010, 06:29 AM
  7. Detect if open within browser, not Excel
    By IanDeaville in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-24-2010, 06:21 AM

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