<?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>VBA</anon>
    <anon>Excel</anon>
  </categories>
  <description>職場の勉強会で、WorkSheet_SelectionChange イベントを扱う機会があった。 選択範囲の値を得て、何某かの処理をする。私の中では、Target を使うのが定番。例えば、こんな感じだ。 Private Sub Worksheet_SelectionChange(ByVal Target As Range) ' 複数セル選択によるエラーを回避。 If Target.Count &gt; 1 Then Exit Sub Else MsgBox Target.Value End If End Sub とここで、最近始めたばかりの参加者から、ActiveCellを使うという案が出た。確かに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2019%2F10%2F08%2F210513&quot; title=&quot;Target と Selection と ActiveCell - 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/20191008/20191008204839.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-08 21:05:13</published>
  <title>Target と Selection と ActiveCell</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2019/10/08/210513</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
