<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t-hom</author_name>
  <author_url>https://blog.hatena.ne.jp/t-hom/</author_url>
  <blog_title>t-hom’s diary</blog_title>
  <blog_url>https://thom.hateblo.jp/</blog_url>
  <categories>
    <anon>VBA</anon>
  </categories>
  <description>VBAで外部のオブジェクトを扱うには、事前バインド方式と遅延バインド方式の2種類がある。事前バインドとはいわゆる参照設定のことで、遅延バインドとはCreateObject関数によるオブジェクト生成を指す。さて、どちらが良いかと言われると一長一短なので困る。 メリット・デメリットは概ねこんなかんじ。 事前バインド(参照設定) 遅延バインド(CreateObject) メリット 型がきっちり決まるのでコーディング中に入力補完の恩恵を受けられる。 コードだけで完結するのでネットで公開するのが楽。 デメリット コードだけで完結しないのでネットにコードを掲載する場合に説明が面倒くさい。ライブラリのバージ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthom.hateblo.jp%2Fentry%2F2017%2F01%2F16%2F165908&quot; title=&quot;VBA 参照設定とCreateObjectを定数1つで切り替えるテクニック - t-hom’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-01-16 16:59:08</published>
  <title>VBA 参照設定とCreateObjectを定数1つで切り替えるテクニック</title>
  <type>rich</type>
  <url>https://thom.hateblo.jp/entry/2017/01/16/165908</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
