<?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>「cmdExit_Click」に必要な処理を記述することで、Excelを閉じて終了する時にメッセージを表示させることができる。 以下はその一例。 Private Sub cmdExit_Click() Dim intRtn As Integer intRtn = MsgBox(&quot;処理を終了します。&quot; &amp; vbCrLf &amp; _ &quot;よろしいですか？&quot;, vbQuestion + vbOKCancel, &quot;終了確認メッセージ&quot;) If intRtn &lt;&gt; vbOK Then Exit Sub End If '保存して閉じる ActiveWorkbook.Close SaveChanges:=True…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhareno-urakata.com%2Fentry%2F2021%2F03%2F02%2F000000&quot; title=&quot;Excel VBA Excel終了時にメッセージを表示する(cmdExit_Click) - 晴れのうらかた&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-02 00:00:00</published>
  <title>Excel VBA Excel終了時にメッセージを表示する(cmdExit_Click)</title>
  <type>rich</type>
  <url>https://hareno-urakata.com/entry/2021/03/02/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
