<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>LimeCode</author_name>
  <author_url>https://blog.hatena.ne.jp/LimeCode/</author_url>
  <blog_title>和風スパゲティのレシピ</blog_title>
  <blog_url>https://www.limecode.jp/</blog_url>
  <categories>
    <anon>イベント処理</anon>
    <anon>基本の書き方</anon>
    <anon>ブック・ファイル</anon>
    <anon>VBA</anon>
  </categories>
  <description>ブックを開いたときにマクロを自動実行するにはWorkbook_Openイベントを利用します。ただし実際には「マクロを有効化」した際に実行されるため、本当に開いた直後に実行させるにはいくつかの工夫が必要になります。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.limecode.jp%2Fentry%2Fsyntax%2Fworkbook-open-event&quot; title=&quot;ブックを開いたときにマクロを自動実行する - Workbook_Open - 和風スパゲティのレシピ&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/L/LimeCode/20260216/20260216233927.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-16 23:54:24</published>
  <title>ブックを開いたときにマクロを自動実行する - Workbook_Open</title>
  <type>rich</type>
  <url>https://www.limecode.jp/entry/syntax/workbook-open-event</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
