<?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>〜Excel特有の“罠”を知らないと事故ります〜 「この値、日付かどうか判定したい」そんなときに使うのが IsDate()。 IsDate(値) 一見とても便利ですが、Excel VBAでは“思わぬTrue”が返ることがあるため注意が必要です。 🔹 IsDate()の基本 Debug.Print IsDate(&quot;2025/01/01&quot;) ' TrueDebug.Print IsDate(&quot;abc&quot;) ' False ここまでは直感通り。 ⚠ Excel特有の罠①：数値も日付扱いされる Debug.Print IsDate(1) ' TrueDebug.Print IsDate(45000) '…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkuku81kuku81.hatenablog.com%2Fentry%2F2026%2F02%2F04_Excel_VBA_how_to_use_IsDate%2528%2529&quot; title=&quot;【Excelマクロ要注意】IsDate()で日付を判定するコツ - 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>2026-02-04 19:00:00</published>
  <title>【Excelマクロ要注意】IsDate()で日付を判定するコツ</title>
  <type>rich</type>
  <url>https://kuku81kuku81.hatenablog.com/entry/2026/02/04_Excel_VBA_how_to_use_IsDate%28%29</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
