<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>warusanta</author_name>
  <author_url>https://blog.hatena.ne.jp/warusanta/</author_url>
  <blog_title>AMP TIPS</blog_title>
  <blog_url>https://warusanta.hatenadiary.org/</blog_url>
  <categories>
    <anon>VBA入門</anon>
  </categories>
  <description>Option Explicitは、変数のタイプミスを防ぐために、宣言を強制するステートメントだよ 先頭に記述しておけば、宣言していない変数は利用不可となります これはエラー(変数を宣言しないで利用) Option Explicit Sub myAlert() myHello = &quot;Hello World!!&quot; MsgBox myHello '宣言していない変数の中身をアラートで表示 End Sub これはOK(変数を宣言してから利用) Option Explicit Sub myAlert() Dim myHello As String '変数を文字列型で宣言 myHello = &quot;Hello…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwarusanta.hatenadiary.org%2Fentry%2F20080305%2F1204675666&quot; title=&quot;VBA入門② No.2 変数の宣言を強制する「Option Explicit」 - AMP TIPS&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>2008-03-05 09:07:46</published>
  <title>VBA入門② No.2 変数の宣言を強制する「Option Explicit」</title>
  <type>rich</type>
  <url>https://warusanta.hatenadiary.org/entry/20080305/1204675666</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
