<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Infoment</author_name>
  <author_url>https://blog.hatena.ne.jp/Infoment/</author_url>
  <blog_title>Infomentのブログ ～Excel VBA奮闘記～</blog_title>
  <blog_url>https://infoment.hatenablog.com/</blog_url>
  <categories>
    <anon>Excel</anon>
    <anon>VBA</anon>
    <anon>失敗談</anon>
  </categories>
  <description>先日から作成中のクラスモジュールに、シート削除関数を設けている。 その過程で遭遇した現象について、再現方法が分かったので紹介する。 その現象とは「Excelの強制終了」という恐ろしいもの。どこにどのような 影響があるか分からないので、正直、試すこともためらわれる。手順は、以下のとおり。 １．二つ以上のシートを準備する。 ２．マクロで、どちらか片方のシートを削除する。３．続けて削除シートのプロパティを、そのオブジェクト名を用いて呼び出す。例えば、こんな感じだ。 Sub Test() Sheet2.Delete Debug.Print Sheet2.Name End Sub 今回も実行してみたとこ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2021%2F09%2F15%2F233332&quot; title=&quot;幽霊シートが消えてくれない - Infomentのブログ ～Excel VBA奮闘記～&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/I/Infoment/20210915/20210915230452.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-09-15 23:33:32</published>
  <title>幽霊シートが消えてくれない</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2021/09/15/233332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
