{"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>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>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>001.Declare an object for http communication.<\/p>\n\n\n\n<p>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>002.Open communication to the destination.<\/p>\n\n\n\n<p>003.Write the request header. (Depends on the API specifications of the connection destination)<\/p>\n\n\n\n<p>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>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.sbs.com.au\/news\/article\/australias-student-visa-crackdown-hits-record-highs\/xi9s1oek9'>Australia&#039;s student visa crackdown hits record highs \u2014 what it means for who gets in<\/a><\/div><time datetime=\"2026-05-03T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-05-03<\/time> <span class=\"wp-block-rss__item-author\">by SBS News<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/japannews.yomiuri.co.jp\/editorial\/insights-world\/20260501-325231\/'>Find a Long-Term Fix for the Issue of Immigration<\/a><\/div><time datetime=\"2026-05-01T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-05-01<\/time> <span class=\"wp-block-rss__item-author\">by Japan News<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.newstalkzb.co.nz\/on-air\/mike-hosking-breakfast\/audio\/marcus-beveridge-queen-city-law-managing-director-on-visa-rejection-rates-falling-to-a-post-covid-low\/'>Immigration NZ praised for running a &#039;tight ship&#039; as visa rejection rate falls<\/a><\/div><time datetime=\"2026-05-01T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-05-01<\/time> <span class=\"wp-block-rss__item-author\">by Newstalk ZB<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.azernews.az\/region\/257838.html'>Tokyo\u2019s labour crunch fuels fastest immigration shift in decades<\/a><\/div><time datetime=\"2026-05-01T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-05-01<\/time> <span class=\"wp-block-rss__item-author\">by AZER NEWS<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/unseen-japan.com\/japan-visa-ethnic-restaurants-closing\/'>Japan\u2019s New Visa Rules Are Forcing Tokyo\u2019s Immigrant-Run Restaurants to Close<\/a><\/div><time datetime=\"2026-04-30T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-04-30<\/time> <span class=\"wp-block-rss__item-author\">by Unseen Japan<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.visahq.com\/news\/2026-04-29\/de\/germany-publishes-geas-adaptation-law-overhauling-national-asylum-system\/'>Germany Publishes GEAS Adaptation Law, Overhauling National Asylum System<\/a><\/div><time datetime=\"2026-04-30T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-04-30<\/time> <span class=\"wp-block-rss__item-author\">by VisaHQ<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.washingtonpost.com\/opinions\/2026\/04\/29\/daca-protections-weakened-by-latest-trump-doj-immigration-policy-shift\/'>DACA recipients face fresh onslaught<\/a><\/div><time datetime=\"2026-04-30T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-04-30<\/time> <span class=\"wp-block-rss__item-author\">by The Washington Post<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/time.com\/article\/2026\/04\/30\/switzerland-population-cap-immigration-referendum-european-union\/'>What to Know About Switzerland\u2019s Proposal to Cap Its Population<\/a><\/div><time datetime=\"2026-04-30T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-04-30<\/time> <span class=\"wp-block-rss__item-author\">by TIME<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/www.infomigrants.net\/en\/post\/71172\/spain-children-and-dependent-adults-with-disabilities-can-obtain-residency-alongside-their-parents'>Spain: Children and dependent adults with disabilities can obtain residency alongside their parents<\/a><\/div><time datetime=\"2026-04-30T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-04-30<\/time> <span class=\"wp-block-rss__item-author\">by InfoMigrants<\/span><\/li><li class='wp-block-rss__item'><div class='wp-block-rss__item-title'><a href='https:\/\/cronkitenews.azpbs.org\/2026\/04\/29\/japan-immigrant-detention-alternatives\/'>For some immigrants in Japan, alternatives to detention bring release, but not freedom<\/a><\/div><time datetime=\"2026-04-29T09:00:00+09:00\" class=\"wp-block-rss__item-publish-date\">2026-04-29<\/time> <span class=\"wp-block-rss__item-author\">by Cronkite News<\/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}]}}