{"id":88,"date":"2024-01-01T06:53:47","date_gmt":"2023-12-31T21:53:47","guid":{"rendered":"https:\/\/www.japan-workers.com\/?p=88"},"modified":"2024-05-02T22:59:17","modified_gmt":"2024-05-02T13:59:17","slug":"internet-communication-via-excel-vba","status":"publish","type":"post","link":"https:\/\/www.japan-workers.com\/?p=88","title":{"rendered":"Internet via Excel VBA"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">HTTP communication is a typical method for exchanging data with external computers\/servers over the Internet. The coding is done using javascript, but it is also possible to write it using Excel VBA. The residence application management system used by the office: NICRAS also uses Excel VBA when transmitting residence application data using the Mynaportal API and when acquiring data from the NICRAS server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">&lt;Coding Examples&gt;<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The following is the simplest coding example.<\/p>\n\n\n\n<pre class=\"wp-block-code has-dark-gray-background-color has-background\" style=\"font-size:13px\"><code>001 Set objXmlHttp = CreateObject(\"MSXML2.XMLHTTP\")\u3000\n002 objXmlHttp.Open \"GET\",\"&lt;endpoint&gt;\", False\n003 objXmlHttp.setRequestHeader \"X-Access-Key\", i_access_key\n004 objXmlHttp.send\n005 lStrResponse = objXmlHttp.responseText<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">001.Declare an object for http communication.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you get a compilation error, check that Micosoft XML X.X is referenced in the reference settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"726\" src=\"https:\/\/www.japan-workers.com\/wp-content\/uploads\/2024\/01\/\u753b\u50cf3-1024x726.png\" alt=\"\" class=\"wp-image-94\" srcset=\"https:\/\/www.japan-workers.com\/wp-content\/uploads\/2024\/01\/\u753b\u50cf3-1024x726.png 1024w, https:\/\/www.japan-workers.com\/wp-content\/uploads\/2024\/01\/\u753b\u50cf3-300x213.png 300w, https:\/\/www.japan-workers.com\/wp-content\/uploads\/2024\/01\/\u753b\u50cf3-768x545.png 768w, https:\/\/www.japan-workers.com\/wp-content\/uploads\/2024\/01\/\u753b\u50cf3.png 1122w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">002.Open communication to the destination.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">003.Write the request header. (Depends on the API specifications of the connection destination)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">004.Send the data. When sending using the POST method, set the parameters here. When using the GET method, set it to the endpoint&#8217;s query string.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">005.The return value from the destination computer\/server is stored in .responseText.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><a href=\"http:\/\/ngj.jp\/press_manager.php?lang=ENG\" target=\"_blank\" rel=\"noopener nofollow\" title=\"\">Japan Immigration News<\/a><\/strong><\/h2>\n\n\n<ul class=\"is-grid columns-2 has-dates has-authors wp-block-rss\"><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.japantimes.co.jp\/news\/2026\/06\/16\/world\/politics\/sweden-good-behavior-law-immigrants\/'>Sweden\u2019s \u2018good behavior\u2019 law to revoke residency permits for legal behaviors<\/a><\/div><time datetime=\"2026-06-16T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-16<\/time> <span class=\"wp-block-rss__item-author\">by Japan Times<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.newmarkettoday.ca\/columns\/opinion\/opinion-immigration-equalization-and-canadian-unity-forever-linked-12420445'>OPINION: Immigration, equalization and Canadian unity forever linked<\/a><\/div><time datetime=\"2026-06-15T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-15<\/time> <span class=\"wp-block-rss__item-author\">by NewmarketToday.ca<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/elpasomatters.org\/2026\/06\/15\/opinion-congress-must-protect-dreamers-daca-renewal-delays-el-paso\/'>Opinion: Certainty for Dreamers strengthens us all<\/a><\/div><time datetime=\"2026-06-15T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-15<\/time> <span class=\"wp-block-rss__item-author\">by El Paso Matters<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.chosun.com\/english\/opinion-en\/2026\/06\/14\/7MZUWYSIFBC3HDHQS3EZAGKMRQ\/'>Success Conditions for Korea&#039;s 2030 Immigration Strategy<\/a><\/div><time datetime=\"2026-06-14T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-14<\/time> <span class=\"wp-block-rss__item-author\">by The Chosun Daily<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/spectator.com\/article\/south-africas-migration-warning-to-the-west\/'>South Africa\u2019s migration warning to the West<\/a><\/div><time datetime=\"2026-06-14T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-14<\/time> <span class=\"wp-block-rss__item-author\">by The Spectator<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.dw.com\/en\/italy-thousands-attend-anti-and-pro-migration-rallies-in-rome\/a-77540136'>Italy: Anti- and pro-migration rallies sweep Rome<\/a><\/div><time datetime=\"2026-06-14T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-14<\/time> <span class=\"wp-block-rss__item-author\">by DW<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.newsweek.com\/tens-of-thousands-rally-in-europe-over-migration-debate-12070066'>Tens of Thousands Rally in Europe Over Migration Debate<\/a><\/div><time datetime=\"2026-06-13T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-13<\/time> <span class=\"wp-block-rss__item-author\">by Newsweek<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/iol.co.za\/pretoria-news\/opinion\/2026-06-12-cant-we-get-tough-on-illegal-immigration-and-still-be-compassionate-to-all\/'>Can&#039;t we get tough on illegal immigration and still be compassionate to all?<\/a><\/div><time datetime=\"2026-06-12T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-12<\/time> <span class=\"wp-block-rss__item-author\">by IOL<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/today.rtl.lu\/news\/world\/switzerland-split-on-immigration-vote-four-perspectives-582836902'>Switzerland split on immigration vote: four perspectives<\/a><\/div><time datetime=\"2026-06-12T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-12<\/time> <span class=\"wp-block-rss__item-author\">by RTL<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.dw.com\/en\/eu-asylum-law-ceas-germany-deportation-migration\/a-77508144'>What impact will the new EU asylum law CEAS really have?<\/a><\/div><time datetime=\"2026-06-12T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-06-12<\/time> <span class=\"wp-block-rss__item-author\">by DW<\/span><\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>HTTP communication is a typical method for exchanging data with external computers\/servers over the Internet. The coding..<\/p>\n","protected":false},"author":1,"featured_media":125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3,22,23],"tags":[],"class_list":["post-88","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-english","category-excel-vba","category-it-technology","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=88"}],"version-history":[{"count":15,"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":614,"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=\/wp\/v2\/posts\/88\/revisions\/614"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=\/wp\/v2\/media\/125"}],"wp:attachment":[{"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.japan-workers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}