<?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>
  </categories>
  <description>今日は、MsgBoxの戻り値の受け取り方について、二通りをご紹介。 VBEで、MsgBoxの後に &quot;（&quot; を入力すると、下のように表示される。 末尾に&quot; As VbMsgBoxResult &quot; と表示されていることから、戻り値を VbMsgBoxResult（Enum）で受け取ることが可能と分かる。 VbMsgBoxRsult の メンバーを見ると、例えば vbYes は 6 が設定されている。 従ってMsgBoxの結果を受け取って条件分岐したい場合、例えば次のような書き方が可能だ。 Sub MsgBoxTest1() Dim MsgBoxResult As Long MsgBoxResult…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2022%2F01%2F04%2F123648&quot; title=&quot;MsgBoxの戻り値の受け取り方 - 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/20220104/20220104121203.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-01-04 12:36:48</published>
  <title>MsgBoxの戻り値の受け取り方</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2022/01/04/123648</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
