{"id":7694,"date":"2016-11-18T11:04:30","date_gmt":"2016-11-18T02:04:30","guid":{"rendered":"https:\/\/www.ka-net.org\/blog\/?p=7694"},"modified":"2020-12-25T16:04:56","modified_gmt":"2020-12-25T07:04:56","slug":"google%e7%bf%bb%e8%a8%b3%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e3%82%92%e7%bf%bb%e8%a8%b3%e3%81%99%e3%82%8bvba%e3%83%9e%e3%82%af%e3%83%adie%e6%93%8d%e4%bd%9c%e7%89%88","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=7694","title":{"rendered":"Google\u7ffb\u8a33\u3067\u6587\u5b57\u5217\u3092\u7ffb\u8a33\u3059\u308bVBA\u30de\u30af\u30ed(IE\u64cd\u4f5c\u7248)"},"content":{"rendered":"<p>\u4e0b\u8a18\u8a18\u4e8b\u306b\u3042\u308b\u3088\u3046\u306b\u3001\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u6a5f\u68b0\u7ffb\u8a33\u306e\u5c0e\u5165\u306b\u3088\u3063\u3066\u3001<a href=\"https:\/\/translate.google.co.jp\/\" title=\"Google \u7ffb\u8a33\" target=\"_blank\" rel=\"noopener\">Google\u7ffb\u8a33<\/a>\u306e\u7cbe\u5ea6\u304c\u5411\u4e0a\u3057\u305f\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u5f85\u3063\u3066\u305f\uff01\u3064\u3044\u306bGoogle\u7ffb\u8a33\u304c\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u6a5f\u68b0\u7ffb\u8a33\u3092\u65e5\u672c\u8a9e\u7248\u306b\u3082\u9069\u7528\u3002\u7570\u5e38\u306b\u4e0a\u304c\u3063\u305f\u7ffb\u8a33\u6027\u80fd\u306f\u611f\u52d5\u30e2\u30ce<\/li>\n<li style=\"list-style-type:none;\"><a href=\"https:\/\/bita.jp\/dml\/gtransrate_upgrade\" target=\"_blank\" title=\"\u5f85\u3063\u3066\u305f\uff01\u3064\u3044\u306bGoogle\u7ffb\u8a33\u304c\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u6a5f\u68b0\u7ffb\u8a33\u3092\u65e5\u672c\u8a9e\u7248\u306b\u3082\u9069\u7528\u3002\u7570\u5e38\u306b\u4e0a\u304c\u3063\u305f\u7ffb\u8a33\u6027\u80fd\u306f\u611f\u52d5\u30e2\u30ce\" rel=\"noopener\">https:\/\/bita.jp\/dml\/gtransrate_upgrade<\/a><\/li>\n<li>Google\u7ffb\u8a33\u304c\u9032\u5316!?\u3000\u7cbe\u5ea6\u304c\u5411\u4e0a\u3057\u305f\u3068\u8a71\u984c\u306b<\/li>\n<li style=\"list-style-type:none;\"><a href=\"http:\/\/nlab.itmedia.co.jp\/nl\/articles\/1611\/12\/news021.html\" target=\"_blank\" title=\"Google\u7ffb\u8a33\u304c\u9032\u5316!?\u3000\u7cbe\u5ea6\u304c\u5411\u4e0a\u3057\u305f\u3068\u8a71\u984c\u306b\" rel=\"noopener\">http:\/\/nlab.itmedia.co.jp\/nl\/articles\/1611\/12\/news021.html<\/a><\/li>\n<\/ul>\n<p>Google\u7ffb\u8a33\u3068\u3044\u3048\u3070\u3001\u5f53\u30d6\u30ed\u30b0\u3067\u3082\u6570\u5e74\u524d\u306b\u300c<a href=\"https:\/\/www.ka-net.org\/blog\/?p=1274\" title=\"Google\u7ffb\u8a33\u3067\u6587\u5b57\u5217\u3092\u7ffb\u8a33\u3059\u308b\u30de\u30af\u30ed | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\" rel=\"noopener\">Google\u7ffb\u8a33\u3067\u6587\u5b57\u5217\u3092\u7ffb\u8a33\u3059\u308b\u30de\u30af\u30ed<\/a>\u300d\u306b\u3064\u3044\u3066\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u65b9\u6cd5\u306f\u3068\u3063\u304f\u306b\u4f7f\u3048\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u672c\u6765\u3067\u3042\u308c\u3070\u3001<a href=\"https:\/\/cloud.google.com\/translate\/?hl=ja\" title=\"Google Translate API - \u9ad8\u901f\u3067\u52d5\u7684\u306a\u30ed\u30fc\u30ab\u30ea\u30bc\u30fc\u30b7\u30e7\u30f3  |  Google Cloud Platform\" target=\"_blank\" rel=\"noopener\">\u6709\u511f\u306eGoogle Translate API<\/a>\u3092\u4f7f\u3046\u3079\u304d\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u65b9\u5411\u6027\u3092\u5909\u3048\u3066\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u201cInternet Explorer\u3092\u4f7f\u3063\u3066Google\u7ffb\u8a33\u3092\u884c\u3046\u64cd\u4f5c\u201d<\/span>\u3092\u81ea\u52d5\u5316\u3059\u308bVBA\u30de\u30af\u30ed\u3092\u8003\u3048\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000; font-weight: bold;\">2020\/12\/25 \u8ffd\u8a18\uff1a<\/span><br \/>\n\u30de\u30af\u30ed\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u76f4\u3057\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u5f8c\u3082Google\u7ffb\u8a33\u306e\u4ed5\u69d8\u5909\u66f4\u306b\u3088\u308a\u3001\u30de\u30af\u30ed\u304c\u4f7f\u7528\u3067\u304d\u306a\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nPrivate Enum Lang\r\n  lgAuto = 0 '\u8a00\u8a9e\u3092\u691c\u51fa\u3059\u308b\r\n  lgIcelandic = 1 '\u30a2\u30a4\u30b9\u30e9\u30f3\u30c9\u8a9e\r\n  lgIrish = 2 '\u30a2\u30a4\u30eb\u30e9\u30f3\u30c9\u8a9e\r\n  lgAzerbaijani = 3 '\u30a2\u30bc\u30eb\u30d0\u30a4\u30b8\u30e3\u30f3\u8a9e\r\n  lgAfrikaans = 4 '\u30a2\u30d5\u30ea\u30ab\u30fc\u30f3\u30b9\u8a9e\r\n  lgAmharic = 5 '\u30a2\u30e0\u30cf\u30e9\u8a9e\r\n  lgArabic = 6 '\u30a2\u30e9\u30d3\u30a2\u8a9e\r\n  lgAlbanian = 7 '\u30a2\u30eb\u30d0\u30cb\u30a2\u8a9e\r\n  lgArmenian = 8 '\u30a2\u30eb\u30e1\u30cb\u30a2\u8a9e\r\n  lgItalian = 9 '\u30a4\u30bf\u30ea\u30a2\u8a9e\r\n  lgYiddish = 10 '\u30a4\u30c7\u30a3\u30c3\u30b7\u30e5\u8a9e\r\n  lgIgbo = 11 '\u30a4\u30dc\u8a9e\r\n  lgIndonesian = 12 '\u30a4\u30f3\u30c9\u30cd\u30b7\u30a2\u8a9e\r\n  lgUyghur = 13 '\u30a6\u30a4\u30b0\u30eb\u8a9e\r\n  lgWelsh = 14 '\u30a6\u30a7\u30fc\u30eb\u30ba\u8a9e\r\n  lgUkrainian = 15 '\u30a6\u30af\u30e9\u30a4\u30ca\u8a9e\r\n  lgUzbek = 16 '\u30a6\u30ba\u30d9\u30af\u8a9e\r\n  lgUrdu = 17 '\u30a6\u30eb\u30c9\u30a5\u8a9e\r\n  lgEstonian = 18 '\u30a8\u30b9\u30c8\u30cb\u30a2\u8a9e\r\n  lgEsperanto = 19 '\u30a8\u30b9\u30da\u30e9\u30f3\u30c8\u8a9e\r\n  lgDutch = 20 '\u30aa\u30e9\u30f3\u30c0\u8a9e\r\n  lgOdia = 21 '\u30aa\u30ea\u30e4\u8a9e\r\n  lgKazakh = 22 '\u30ab\u30b6\u30d5\u8a9e\r\n  lgCatalan = 23 '\u30ab\u30bf\u30eb\u30fc\u30cb\u30e3\u8a9e\r\n  lgGalician = 24 '\u30ac\u30ea\u30b7\u30a2\u8a9e\r\n  lgKannada = 25 '\u30ab\u30f3\u30ca\u30c0\u8a9e\r\n  lgKinyarwanda = 26 '\u30ad\u30cb\u30e4\u30eb\u30ef\u30f3\u30c0\u8a9e\r\n  lgGreek = 27 '\u30ae\u30ea\u30b7\u30e3\u8a9e\r\n  lgKyrgyz = 28 '\u30ad\u30eb\u30ae\u30b9\u8a9e\r\n  lgGujarati = 29 '\u30b0\u30b8\u30e3\u30e9\u30c8\u8a9e\r\n  lgKhmer = 30 '\u30af\u30e1\u30fc\u30eb\u8a9e\r\n  lgKurdish = 31 '\u30af\u30eb\u30c9\u8a9e\r\n  lgCroatian = 32 '\u30af\u30ed\u30a2\u30c1\u30a2\u8a9e\r\n  lgXhosa = 33 '\u30b3\u30fc\u30b5\u8a9e\r\n  lgCorsican = 34 '\u30b3\u30eb\u30b7\u30ab\u8a9e\r\n  lgSamoan = 35 '\u30b5\u30e2\u30a2\u8a9e\r\n  lgJavanese = 36 '\u30b8\u30e3\u30ef\u8a9e\r\n  lgGeorgian = 37 '\u30b8\u30e7\u30fc\u30b8\u30a2\uff08\u30b0\u30eb\u30b8\u30a2\uff09\u8a9e\r\n  lgShona = 38 '\u30b7\u30e7\u30ca\u8a9e\r\n  lgSindhi = 39 '\u30b7\u30f3\u30c9\u8a9e\r\n  lgSinhala = 40 '\u30b7\u30f3\u30cf\u30e9\u8a9e\r\n  lgSwedish = 41 '\u30b9\u30a6\u30a7\u30fc\u30c7\u30f3\u8a9e\r\n  lgZulu = 42 '\u30ba\u30fc\u30eb\u30fc\u8a9e\r\n  lgScotsGaelic = 43 '\u30b9\u30b3\u30c3\u30c8\u30e9\u30f3\u30c9 \u30b2\u30fc\u30eb\u8a9e\r\n  lgSpanish = 44 '\u30b9\u30da\u30a4\u30f3\u8a9e\r\n  lgSlovak = 45 '\u30b9\u30ed\u30d0\u30ad\u30a2\u8a9e\r\n  lgSlovenian = 46 '\u30b9\u30ed\u30d9\u30cb\u30a2\u8a9e\r\n  lgSwahili = 47 '\u30b9\u30ef\u30d2\u30ea\u8a9e\r\n  lgSundanese = 48 '\u30b9\u30f3\u30c0\u8a9e\r\n  lgCebuano = 49 '\u30bb\u30d6\u30a2\u30ce\u8a9e\r\n  lgSerbian = 50 '\u30bb\u30eb\u30d3\u30a2\u8a9e\r\n  lgSesotho = 51 '\u30bd\u30c8\u8a9e\r\n  lgSomali = 52 '\u30bd\u30de\u30ea\u8a9e\r\n  lgThai = 53 '\u30bf\u30a4\u8a9e\r\n  lgFilipino = 54 '\u30bf\u30ac\u30ed\u30b0\u8a9e\r\n  lgTajik = 55 '\u30bf\u30b8\u30af\u8a9e\r\n  lgTatar = 56 '\u30bf\u30bf\u30fc\u30eb\u8a9e\r\n  lgTamil = 57 '\u30bf\u30df\u30eb\u8a9e\r\n  lgCzech = 58 '\u30c1\u30a7\u30b3\u8a9e\r\n  lgChichewa = 59 '\u30c1\u30a7\u30ef\u8a9e\r\n  lgTelugu = 60 '\u30c6\u30eb\u30b0\u8a9e\r\n  lgDanish = 61 '\u30c7\u30f3\u30de\u30fc\u30af\u8a9e\r\n  lgGerman = 62 '\u30c9\u30a4\u30c4\u8a9e\r\n  lgTurkmen = 63 '\u30c8\u30eb\u30af\u30e1\u30f3\u8a9e\r\n  lgTurkish = 64 '\u30c8\u30eb\u30b3\u8a9e\r\n  lgNepali = 65 '\u30cd\u30d1\u30fc\u30eb\u8a9e\r\n  lgNorwegian = 66 '\u30ce\u30eb\u30a6\u30a7\u30fc\u8a9e\r\n  lgHaitianCreole = 67 '\u30cf\u30a4\u30c1\u8a9e\r\n  lgHausa = 68 '\u30cf\u30a6\u30b5\u8a9e\r\n  lgPashto = 69 '\u30d1\u30b7\u30e5\u30c8\u8a9e\r\n  lgBasque = 70 '\u30d0\u30b9\u30af\u8a9e\r\n  lgHawaiian = 71 '\u30cf\u30ef\u30a4\u8a9e\r\n  lgHungarian = 72 '\u30cf\u30f3\u30ac\u30ea\u30fc\u8a9e\r\n  lgPunjabi = 73 '\u30d1\u30f3\u30b8\u30e3\u30d6\u8a9e\r\n  lgHindi = 74 '\u30d2\u30f3\u30c7\u30a3\u30fc\u8a9e\r\n  lgFinnish = 75 '\u30d5\u30a3\u30f3\u30e9\u30f3\u30c9\u8a9e\r\n  lgFrench = 76 '\u30d5\u30e9\u30f3\u30b9\u8a9e\r\n  lgFrisian = 77 '\u30d5\u30ea\u30b8\u30a2\u8a9e\r\n  lgBulgarian = 78 '\u30d6\u30eb\u30ac\u30ea\u30a2\u8a9e\r\n  lgVietnamese = 79 '\u30d9\u30c8\u30ca\u30e0\u8a9e\r\n  lgHebrew = 80 '\u30d8\u30d6\u30e9\u30a4\u8a9e\r\n  lgBelarusian = 81 '\u30d9\u30e9\u30eb\u30fc\u30b7\u8a9e\r\n  lgPersian = 82 '\u30da\u30eb\u30b7\u30e3\u8a9e\r\n  lgBengali = 83 '\u30d9\u30f3\u30ac\u30eb\u8a9e\r\n  lgPolish = 84 '\u30dd\u30fc\u30e9\u30f3\u30c9\u8a9e\r\n  lgBosnian = 85 '\u30dc\u30b9\u30cb\u30a2\u8a9e\r\n  lgPortuguese = 86 '\u30dd\u30eb\u30c8\u30ac\u30eb\u8a9e\r\n  lgMaori = 87 '\u30de\u30aa\u30ea\u8a9e\r\n  lgMacedonian = 88 '\u30de\u30b1\u30c9\u30cb\u30a2\u8a9e\r\n  lgMarathi = 89 '\u30de\u30e9\u30fc\u30c6\u30a3\u30fc\u8a9e\r\n  lgMalagasy = 90 '\u30de\u30e9\u30ac\u30b7\u8a9e\r\n  lgMalayalam = 91 '\u30de\u30e9\u30e4\u30fc\u30e9\u30e0\u8a9e\r\n  lgMaltese = 92 '\u30de\u30eb\u30bf\u8a9e\r\n  lgMalay = 93 '\u30de\u30ec\u30fc\u8a9e\r\n  lgMyanmar = 94 '\u30df\u30e3\u30f3\u30de\u30fc\u8a9e\r\n  lgMongolian = 95 '\u30e2\u30f3\u30b4\u30eb\u8a9e\r\n  lgHmong = 96 '\u30e2\u30f3\u8a9e\r\n  lgYoruba = 97 '\u30e8\u30eb\u30d0\u8a9e\r\n  lgLao = 98 '\u30e9\u30aa\u8a9e\r\n  lgLatin = 99 '\u30e9\u30c6\u30f3\u8a9e\r\n  lgLatvian = 100 '\u30e9\u30c8\u30d3\u30a2\u8a9e\r\n  lgLithuanian = 101 '\u30ea\u30c8\u30a2\u30cb\u30a2\u8a9e\r\n  lgRomanian = 102 '\u30eb\u30fc\u30de\u30cb\u30a2\u8a9e\r\n  lgLuxembourgish = 103 '\u30eb\u30af\u30bb\u30f3\u30d6\u30eb\u30af\u8a9e\r\n  lgRussian = 104 '\u30ed\u30b7\u30a2\u8a9e\r\n  lgEnglish = 105 '\u82f1\u8a9e\r\n  lgKorean = 106 '\u97d3\u56fd\u8a9e\r\n  lgChinese = 107 '\u4e2d\u56fd\u8a9e\r\n  lgJapanese = 108 '\u65e5\u672c\u8a9e\r\nEnd Enum\r\n\r\nPublic Sub Sample()\r\n  OpenGoogleTranslate &quot;\u660e\u65e5\u306e\u6c96\u7e04\u306e\u5929\u6c17\u306f\u6674\u308c\u306e\u4e88\u5831\u3067\u3059\u3002&quot;, lgJapanese, lgSinhala\r\nEnd Sub\r\n\r\nPrivate Sub OpenGoogleTranslate(ByVal TranslateText As String, _\r\n                                Optional ByVal SourceLanguage As Lang = lgAuto, _\r\n                                Optional ByVal TargetLanguage As Lang = lgEnglish)\r\n  Dim url As String\r\n  Dim src_cd As String\r\n  Dim target_cd As String\r\n  Dim ie As Object 'Internet Explorer\r\n  Dim elmSourceArea As Object 'HTMLTextAreaElement\r\n  Dim elm As Object\r\n  Const READYSTATE_COMPLETE = 4\r\n   \r\n  '\u8a00\u8a9e\u30b3\u30fc\u30c9\u53d6\u5f97\r\n  src_cd = GetLangCode(SourceLanguage)\r\n  target_cd = GetLangCode(TargetLanguage)\r\n   \r\n  url = &quot;https:\/\/translate.google.co.jp\/?hl=ja&amp;op=translate&amp;sl=&quot; &amp; src_cd &amp; &quot;&amp;tl=&quot; &amp; target_cd\r\n  Set ie = GetActiveIE(&quot;translate.google.co.jp&quot;)\r\n  If ie Is Nothing Then\r\n    Set ie = CreateObject(&quot;InternetExplorer.Application&quot;)\r\n    With ie\r\n      .AddressBar = False\r\n      .MenuBar = False\r\n      .StatusBar = False\r\n      .Toolbar = False\r\n      .Visible = True\r\n    End With\r\n  End If\r\n  With ie\r\n    .Navigate url\r\n    Do While (.Busy = True) Or (.ReadyState &lt;&gt; READYSTATE_COMPLETE)\r\n      DoEvents\r\n    Loop\r\n    \r\n    '\u539f\u6587\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u53d6\u5f97\r\n    On Error Resume Next\r\n    For Each elm In .document.getElementsByTagName(&quot;textarea&quot;)\r\n      If elm.getAttribute(&quot;aria-label&quot;) = &quot;\u539f\u6587&quot; Then\r\n        Set elmSourceArea = elm\r\n        Exit For\r\n      End If\r\n    Next\r\n    On Error GoTo 0\r\n    If elmSourceArea Is Nothing Then Exit Sub\r\n    \r\n    '\u539f\u6587\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306b\u8cbc\u308a\u4ed8\u3051\r\n    SetCB TranslateText\r\n    elmSourceArea.Select\r\n    .ExecWB 13, 0\r\n  End With\r\nEnd Sub\r\n\r\nPrivate Sub SetCB(ByVal str As String)\r\n'\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u6587\u5b57\u5217\u3092\u683c\u7d0d\r\n  With CreateObject(&quot;Forms.TextBox.1&quot;)\r\n    .MultiLine = True\r\n    .Text = str\r\n    .SelStart = 0\r\n    .SelLength = .TextLength\r\n    .Copy\r\n  End With\r\nEnd Sub\r\n\r\nPrivate Function GetActiveIE(ByVal url As String) As Object\r\n'URL\u3092\u6307\u5b9a\u3057\u3066\u8d77\u52d5\u4e2d\u306eIE\u53d6\u5f97\r\n  Dim o As Object\r\n   \r\n  For Each o In GetObject(&quot;new:{9BA05972-F6A8-11CF-A442-00A0C90A8F39}&quot;) 'ShellWindows\r\n    If LCase(TypeName(o)) = &quot;iwebbrowser2&quot; Then\r\n      If LCase(TypeName(o.document)) = &quot;htmldocument&quot; Then\r\n        If o.LocationURL Like &quot;*&quot; &amp; url &amp; &quot;*&quot; Then\r\n          Set GetActiveIE = o\r\n          Exit For\r\n        End If\r\n      End If\r\n    End If\r\n  Next\r\nEnd Function\r\n\r\nPrivate Function GetLangCode(ByVal LangNo As Lang) As String\r\n'\u8a00\u8a9e\u30b3\u30fc\u30c9\u53d6\u5f97\r\n  Dim v As Variant\r\n  \r\n  v = Array(&quot;auto&quot;, &quot;is&quot;, &quot;ga&quot;, &quot;az&quot;, &quot;af&quot;, &quot;am&quot;, &quot;ar&quot;, &quot;sq&quot;, &quot;hy&quot;, &quot;it&quot;, _\r\n            &quot;yi&quot;, &quot;ig&quot;, &quot;id&quot;, &quot;ug&quot;, &quot;cy&quot;, &quot;uk&quot;, &quot;uz&quot;, &quot;ur&quot;, &quot;et&quot;, &quot;eo&quot;, _\r\n            &quot;nl&quot;, &quot;or&quot;, &quot;kk&quot;, &quot;ca&quot;, &quot;gl&quot;, &quot;kn&quot;, &quot;rw&quot;, &quot;el&quot;, &quot;ky&quot;, &quot;gu&quot;, _\r\n            &quot;km&quot;, &quot;ku&quot;, &quot;hr&quot;, &quot;xh&quot;, &quot;co&quot;, &quot;sm&quot;, &quot;jw&quot;, &quot;ka&quot;, &quot;sn&quot;, &quot;sd&quot;, _\r\n            &quot;si&quot;, &quot;sv&quot;, &quot;zu&quot;, &quot;gd&quot;, &quot;es&quot;, &quot;sk&quot;, &quot;sl&quot;, &quot;sw&quot;, &quot;su&quot;, &quot;ceb&quot;, _\r\n            &quot;sr&quot;, &quot;st&quot;, &quot;so&quot;, &quot;th&quot;, &quot;tl&quot;, &quot;tg&quot;, &quot;tt&quot;, &quot;ta&quot;, &quot;cs&quot;, &quot;ny&quot;, _\r\n            &quot;te&quot;, &quot;da&quot;, &quot;de&quot;, &quot;tk&quot;, &quot;tr&quot;, &quot;ne&quot;, &quot;no&quot;, &quot;ht&quot;, &quot;ha&quot;, &quot;ps&quot;, _\r\n            &quot;eu&quot;, &quot;haw&quot;, &quot;hu&quot;, &quot;pa&quot;, &quot;hi&quot;, &quot;fi&quot;, &quot;fr&quot;, &quot;fy&quot;, &quot;bg&quot;, &quot;vi&quot;, _\r\n            &quot;iw&quot;, &quot;be&quot;, &quot;fa&quot;, &quot;bn&quot;, &quot;pl&quot;, &quot;bs&quot;, &quot;pt&quot;, &quot;mi&quot;, &quot;mk&quot;, &quot;mr&quot;, _\r\n            &quot;mg&quot;, &quot;ml&quot;, &quot;mt&quot;, &quot;ms&quot;, &quot;my&quot;, &quot;mn&quot;, &quot;hmn&quot;, &quot;yo&quot;, &quot;lo&quot;, &quot;la&quot;, _\r\n            &quot;lv&quot;, &quot;lt&quot;, &quot;ro&quot;, &quot;lb&quot;, &quot;ru&quot;, &quot;en&quot;, &quot;ko&quot;, &quot;zh-CN&quot;, &quot;ja&quot;)\r\n  GetLangCode = v(LangNo)\r\nEnd Function<\/pre>\n<p><a href=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleTranslate_VBA_IE_02.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/GoogleTranslate_VBA_IE_02.gif\" alt=\"\" width=\"951\" height=\"548\" class=\"alignnone size-full wp-image-13430\" \/><\/a><\/p>\n<p>\u8a00\u8a9e\u30b3\u30fc\u30c9\u306e\u305b\u3044\u3067\u30b3\u30fc\u30c9\u304c\u9577\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u5358\u7d14\u3067\u3001Internet Explorer\u3067Google\u7ffb\u8a33\u3092\u958b\u3044\u3066\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306b\u539f\u6587\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u3002<br \/>\n(\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u6587\u5b57\u5217\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3044\u308b\u90e8\u5206\u306e\u30b3\u30fc\u30c9\u306f\u4e0b\u8a18\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002)<\/p>\n<div class=\"cardlink\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=7537\"><div class=\"cardlink_thumbnail\"><img src='https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeVBA-120x120.png' alt='[VBA]DataObject\u3092\u4f7f\u3063\u305f\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u64cd\u4f5c\u304c\u4e0a\u624b\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u306e\u5bfe\u51e6\u6cd5' width=120 height=120 \/><\/a><\/div><div class=\"cardlink_content\"><span class=\"timestamp\">2016.10.24<\/span><div class=\"cardlink_title\"><a href=\"https:\/\/www.ka-net.org\/blog\/?p=7537\">[VBA]DataObject\u3092\u4f7f\u3063\u305f\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u64cd\u4f5c\u304c\u4e0a\u624b\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u306e\u5bfe\u51e6\u6cd5 <\/a><\/div><div class=\"cardlink_excerpt\">VBA\u30de\u30af\u30ed\u304b\u3089\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u3092\u64cd\u4f5c\u3059\u308b\u5834\u5408\u3001\u5b9a\u756a\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u304cDataObject\u3092\u4f7f\u3063\u305f\u65b9\u6cd5\u3067\u3059\u3002\r\n\r\n[vb]Public Sub Sample()\r\n  With New DataObject\r\n    .SetText &quot;\u3053\u3093\u306b\u3061\u306f\u3001\u4e16...<\/div><\/div><div class=\"cardlink_footer\"><\/div><\/div>\n<p>\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3059\u308b\u305f\u3073\u306bInternet Explorer\u304c\u65b0\u3057\u304f\u8d77\u52d5\u3059\u308b\u306e\u306fPC\u306b\u8ca0\u62c5\u304c\u639b\u304b\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u3059\u3067\u306bInternet Explorer\u3067Google\u7ffb\u8a33\u304c\u958b\u304b\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a\u306f\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Office\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u56fa\u6709\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u4f7f\u3063\u3066\u3044\u306a\u3044\u305f\u3081\u3001Word\u3067\u3082Excel\u3067\u3082\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u305f\u3068\u3048\u3070Word\u3067\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30de\u30af\u30ed\u3092\u7528\u610f\u3057\u3066\u304a\u3051\u3070\u3001<span style=\"color: #ff0000; font-weight: bold;\">\u9078\u629e\u3057\u305f\u6587\u5b57\u5217\u3092\u3059\u3050\u306b\u7ffb\u8a33<\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Public Sub Sample2()\r\n  OpenGoogleTranslate Selection.Text\r\nEnd Sub<\/pre>\n<p>\u3055\u3089\u306b\u3001<a href=\"https:\/\/twitter.com\/nittajunya\" title=\"\u65b0\u7530\u9806\u4e5f(@nittajunya)\u3055\u3093\" target=\"_blank\" rel=\"noopener\">\u65b0\u7530\u3055\u3093<\/a>\u304c\u7d39\u4ecb\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u3001<a href=\"http:\/\/www.wordvbalab.com\/video\/2203\/\" title=\"\u3010\u52d5\u753b\u3011Word\u30de\u30af\u30ed\u3092\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u3067\u5b9f\u884c\u3059\u308b | \u307f\u3093\u306a\u306e\u30ef\u30fc\u30c9\u30de\u30af\u30ed\" target=\"_blank\" rel=\"noopener\">\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u306b\u30de\u30af\u30ed\u3092\u767b\u9332<\/a>\u3057\u3066\u304a\u3051\u3070\u3001\u30ad\u30fc\u64cd\u4f5c\u4e00\u3064\u3067\u30de\u30af\u30ed\u3092\u5b9f\u884c\u3067\u304d\u3066\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<div id=\"single_banner_area2\" class=\"clearfix one_banner\">\n<div class=\"single_banner single_banner_left\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u8a18\u4e8b\u4e2d(\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u5e83\u544a\u30e6\u30cb\u30c3\u30c8) -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-7306936664602087\"\r\n     data-ad-slot=\"5429724765\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\n<\/div>\n<div class=\"single_banner single_banner_right\">\n<a href=\"\" target=\"_blank\"><img decoding=\"async\" src=\"\" alt=\"\" title=\"\" \/><\/a>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"\u4e0b\u8a18\u8a18\u4e8b\u306b\u3042\u308b\u3088\u3046\u306b\u3001\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u6a5f\u68b0\u7ffb\u8a33\u306e\u5c0e\u5165\u306b\u3088\u3063\u3066\u3001Google\u7ffb\u8a33\u306e\u7cbe\u5ea6\u304c\u5411\u4e0a\u3057\u305f\u3089\u3057\u3044\u3067\u3059\u3002 \u5f85\u3063\u3066\u305f\uff01\u3064\u3044\u306bGoogle\u7ffb\u8a33\u304c\u30cb\u30e5\u30fc\u30e9\u30eb\u30cd\u30c3\u30c8\u6a5f\u68b0\u7ffb\u8a33\u3092\u65e5\u672c\u8a9e\u7248\u306b\u3082\u9069\u7528\u3002\u7570\u5e38\u306b\u4e0a\u304c\u3063\u305f\u7ffb\u8a33\u6027\u80fd\u306f\u611f\u52d5\u30e2\u30ce  [&hellip;]","protected":false},"author":1,"featured_media":7120,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[Google\u7ffb\u8a33\u3067\u6587\u5b57\u5217\u3092\u7ffb\u8a33\u3059\u308bVBA\u30de\u30af\u30ed(IE\u64cd\u4f5c\u7248)]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,48,49,58],"tags":[],"class_list":["post-7694","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office","category-excel-office","category-word-office","category-powerpoint"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeVBA.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-206","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7694"}],"version-history":[{"count":3,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7694\/revisions"}],"predecessor-version":[{"id":13432,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7694\/revisions\/13432"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7120"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}