<?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>特定のシート上(ここでは1枚目)にオートシェイプが1つでも見つかった場合に一括削除させる処理です。 慣れた方なら繰り返し処理を考えて複数のシートにも適用させるように組むのが普通かもしれませんが、ここでは1つのシートで限定的に一括削除させる場合の一例です。 Sub a() Dim S_cnt As Integer S_cnt = Worksheets(1).Shapes.Count Worksheets(1).Activate If S_cnt &gt; 1 Then ActiveSheet.Shapes.SelectAll Selection.Delete End If End Sub</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhareno-urakata.com%2Fentry%2F2021%2F03%2F08%2F220251&quot; title=&quot;Excel VBA 図形(オートシェイプ)の有無をチェックし、存在した場合は一括削除する(ActiveSheet.Shapes) - 晴れのうらかた&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-08 22:02:51</published>
  <title>Excel VBA 図形(オートシェイプ)の有無をチェックし、存在した場合は一括削除する(ActiveSheet.Shapes)</title>
  <type>rich</type>
  <url>https://hareno-urakata.com/entry/2021/03/08/220251</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
