<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kuku81kuku81</author_name>
  <author_url>https://blog.hatena.ne.jp/kuku81kuku81/</author_url>
  <blog_title>Django Girls and Boys 備忘録</blog_title>
  <blog_url>https://kuku81kuku81.hatenablog.com/</blog_url>
  <categories>
    <anon>Excel</anon>
    <anon>VBA</anon>
    <anon>マクロ</anon>
  </categories>
  <description>VBAで空、空欄、存在しないや変数の初期値などの時に登場するものに、Empty、Nothigがあります。 違いがわかりにくいこともあり、これらについて備忘録として残しておきたいと思います。 目次 １．Empty ２．Nothing １．Empty セルが空白、空欄の時やVariant型の変数の初期値として使われるのがEmptyです。 VBAで型指定せずに変数を使用した場合にはVariant型となるためこの場合の初期値はEmptyとなります。 Emptyかどうかを判断する場合には、以下のようにIsEmpty()関数を使用するか&quot;&quot;と比較するかします。 簡単な例としては、 str = Cells(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkuku81kuku81.hatenablog.com%2Fentry%2F2023%2F07%2F18_Excel_vba_how_to_use_Empty_and_Nothing&quot; title=&quot;【Excel VBA】EmptyとNothingの違いや利用方法について - Django Girls and Boys 備忘録&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>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kuku81kuku81/20220605/20220605115219.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-07-18 19:00:00</published>
  <title>【Excel VBA】EmptyとNothingの違いや利用方法について</title>
  <type>rich</type>
  <url>https://kuku81kuku81.hatenablog.com/entry/2023/07/18_Excel_vba_how_to_use_Empty_and_Nothing</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
