<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>benkei_maru</author_name>
  <author_url>https://blog.hatena.ne.jp/benkei_maru/</author_url>
  <blog_title>晴れのうらかた</blog_title>
  <blog_url>https://hareno-urakata.com/</blog_url>
  <categories>
    <anon>Excel_VBA</anon>
  </categories>
  <description>通常、プログラムの実行ボタンが押されると、記述した処理が順に動いていく。 しかし、誤って実行ボタンが押されることも想定し、本当にプログラムを実行するかをあらためて確認させることも、ユーザーの人的な動作を考慮した上でこのような記述が必要になることもある。 そのような場合、実行ボタンが押された直後に動作させるチェック処理として記述しておくとよい。 以下はその一例。 If MsgBox(&quot;データ作成を開始しますか？&quot;, vbYesNo + vbQuestion, &quot;〇〇処理&quot;) = vbNo Then '「いいえ」をクリックした場合処理を抜ける。 Exit Sub End If</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhareno-urakata.com%2Fentry%2F2021%2F03%2F07%2F000000&quot; title=&quot;Excel VBA 実行ボタンが押されたときに確認メッセージを表示させたい(MsgBox) - 晴れのうらかた&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>2021-03-07 00:00:00</published>
  <title>Excel VBA 実行ボタンが押されたときに確認メッセージを表示させたい(MsgBox)</title>
  <type>rich</type>
  <url>https://hareno-urakata.com/entry/2021/03/07/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
