3
我使用weekdayname
-function將某些工作日打印到電子表格。這工作正常,除了平日是用當地語言(挪威語)寫的,而不是我想要的英文。有什麼方法可以指定函數返回結果的語言,還是我堅持讓自己的UDF?更改週日名稱返回值的語言
我使用weekdayname
-function將某些工作日打印到電子表格。這工作正常,除了平日是用當地語言(挪威語)寫的,而不是我想要的英文。有什麼方法可以指定函數返回結果的語言,還是我堅持讓自己的UDF?更改週日名稱返回值的語言
試試這個
Debug.Print Application.WorksheetFunction.Text(1,"[$-414]DDDD")
平日1返回søndag
爲Norwegian_Bokmal (414)
爲ID的完整列表,請參閱該鏈接List of Language Packs and Their Codes for Windows 2000 Domain Controllers
在鏈接永遠不會消逝的情況下,這裏是完整列表
Locale/language Language ID in hexadecimal
-------------------------------------------------------
Afrikaans 436
Albanian 041c
Arabic_Saudi_Arabia 401
Arabic_Iraq 801
Arabic_Egypt 0c01
Arabic_Libya 1001
Arabic_Algeria 1401
Arabic_Morocco 1801
Arabic_Tunisia 1c01
Arabic_Oman 2001
Arabic_Yemen 2401
Arabic_Syria 2801
Arabic_Jordan 2c01
Arabic_Lebanon 3 001
Arabic_Kuwait 3401
Arabic_UAE 3801
Arabic_Bahrain 3c01
Arabic_Qatar 4001
Armenian 042b
Azeri_Latin 042c
Azeri_Cyrillic 082c
Basque 042d
Belarusian 423
Bulgarian 402
Catalan 403
Chinese_Taiwan 404
Chinese_PRC 804
Chinese_Hong_Kong 0c04
Chinese_Singapore 1004
Chinese_Macau 1404
Croatian 041a
Czech 405
Danish 406
Dutch_Standard 413
Dutch_Belgian 813
English_United_States 409
English_United_Kingdom 809
English_Australian 0c09
English_Canadian 1009
English_New_Zealand 1409
English_Irish 1809
English_South_Africa 1c09
English_Jamaica 2009
English_Caribbean 2409
English_Belize 2809
English_Trinidad 2c09
English_Zimbabwe 3009
English_Philippines 3409
Estonian 425
Faeroese 438
Farsi 429
Finnish 040b
French_Standard 040c
French_Belgian 080c
French_Canadian 0c0c
French_Swiss 100c
French_Luxembourg 140c
French_Monaco 180c
Georgian 437
German_Standard 407
German_Swiss 807
German_Austrian 0c07
German_Luxembourg 1007
German_Liechtenstein 1407
Greek 408
Hebrew 040d
Hindi 439
Hungarian 040e
Icelandic 040f
Indonesian 421
Italian_Standard 410
Italian_Swiss 810
Japanese 411
Kazakh 043f
Konkani 457
Korean 412
Latvian 426
Lithuanian 427
FYRO Macedonian 042f
Malay_Malaysia 043e
Malay_Brunei_Darussalam 083e
Marathi 044e
Norwegian_Bokmal 414
Norwegian_Nynorsk 814
Polish 415
Portuguese_Brazilian 416
Portuguese_Standard 816
Romanian 418
Russian 419
Sanskrit 044f
Serbian_Latin 081a
Serbian_Cyrillic 0c1a
Slovak 041b
Slovenian 424
Spanish_Traditional_Sort 040a
Spanish_Mexican 080a
Spanish_Modern_Sort 0c0a
Spanish_Guatemala 100a
Spanish_Costa_Rica 140a
Spanish_Panama 180a
Spanish_Dominican_Republic 1c0a
Spanish_Venezuela 200a
Spanish_Colombia 240a
Spanish_Peru 280a
Spanish_Argentina 2c0a
Spanish_Ecuador 300a
Spanish_Chile 340a
Spanish_Uruguay 380a
Spanish_Paraguay 3c0a
Spanish_Bolivia 400a
Spanish_El_Salvador 440a
Spanish_Honduras 480a
Spanish_Nicaragua 4c0a
Spanish_Puerto_Rico 500a
Swahili 441
Swedish 041d
Swedish_Finland 081d
Tamil 449
Tatar 444
Thai 041e
Turkish 041f
Ukrainian 422
Urdu 420
Uzbek_Latin 443
Uzbek_Cyrillic 843
Vietnamese 042a
That worked li有魅力。你知道如果用戶沒有安裝正確的語言包會發生什麼? – eirikdaude
不,我不確定....我已經安裝了所有語言包 –
這可能不會成爲問題。 – eirikdaude