0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Excel VBAからWEB APIを叩くときの注意点

Last updated at Posted at 2021-09-13

主旨

ExcelVBAでWEB APIを用いてhttp通信する場合にハマったところをメモ

概要

Windows10の場合は

CreateObject("MSXML2.XMLHTTP")

で問題なく通信できたのですが、

Windows7の場合は

CreateObject("MSXML2.ServerXMLHTTP")

と記述しないとエラーになります。

どうやらTLSのバージョンによるものだという記事も見つけたので、敬意を表してリンクを貼っておきます。

ですので、OSなどの環境によらずどんな場合でも

CreateObject("MSXML2.ServerXMLHTTP")

を使っておくのが無難だと思われます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?