<?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で、別ブックにあるマクロを実行したときの出来事。 その時の状況は、以下のとおり。 Book1のHOGEから、Book2のFUGAを実行 FUGAがエラー終了 Sub HOGE() Application.Run &quot;BOOK2!FUGA&quot; End Sub Sub FUGA() Range(&quot;A1&quot;) = &quot;ふが&quot; End Sub HOGE側はFUGAが上手く行かなかった場合も、それなりに処理を継続したい。そこで今回は、FUGA側をFUNCTIONプロシージャに変更して対応してみた。 Function FUGA() As Boolean ' エラー無視。 On Error Resum…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2020%2F04%2F04%2F224342&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/20200404/20200404222936.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-04 22:43:42</published>
  <title>別ブックのマクロを実行したときの結果</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2020/04/04/224342</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
