<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamochikuwa440</author_name>
  <author_url>https://blog.hatena.ne.jp/hamochikuwa440/</author_url>
  <blog_title>はもちくわ</blog_title>
  <blog_url>https://hamo440.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>複数のボタンに同じ１つのプロシージャを登録し、押されたボタンによって処理を変える方法のご紹介です。ボタンによって処理を変える方法で最初に思いつくのは、ユーザー定義関数を引数によって処理を変えるように作成しておき、ボタンごとにプロシージャを準備し、それぞれ関数に渡す引数を変える方法じゃないでしょうか？この方法は本当によく使いますが、例えばボタンによって足すか、引くかを変えるだけみたいな、処理自体が単純で簡単な場合、ボタンごとにわざわざプロシージャを作って処理するのは、労力に対して対価がなさすぎて、ちょっと抵抗ありません？（笑）もう、関数でいいじゃん！ってなっちゃうみたいな（笑）そのように感じるの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhamo440.hatenablog.com%2Fentry%2F2023%2F12%2F24%2F000332&quot; title=&quot;【ExcelVBA】１つのプロシージャでボタンごとに処理を変える方法 - はもちくわ&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/h/hamochikuwa440/20231223/20231223221955.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-12-24 00:03:32</published>
  <title>【ExcelVBA】１つのプロシージャでボタンごとに処理を変える方法</title>
  <type>rich</type>
  <url>https://hamo440.hatenablog.com/entry/2023/12/24/000332</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
