<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtiit</author_name>
  <author_url>https://blog.hatena.ne.jp/mtiit/</author_url>
  <blog_title>(O+P)ut</blog_title>
  <blog_url>https://www.mtioutput.com/</blog_url>
  <categories>
    <anon>Windows</anon>
    <anon>Windows-Excel</anon>
  </categories>
  <description>はじめに Excelのシート内に以下のように不要な列が入っている場合に 列 ゴミ列 列 ゴミ列 ゴミ列 列名の箇所にて右クリックをして「Delete」すれば列は削除され左詰めされます。一方、特定のキーワードが削除したい列に存在する場合はマクロによる削除を利用すると省力化できます。 特定の文字列を含む列を削除するマクロ マクロを動かすと該当列は削除されるため別名保存にてバックアップの取得を推奨します以下のコードにて「ゴミ列」という文字列が含まれる列を削除することができます。 Sub test() Dim R As Range Do Set R = ActiveSheet.Range(&quot;A:ZZ&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mtioutput.com%2Fentry%2Fexcel-delete-column&quot; title=&quot;【Excel】特定のキーワードを含む列を削除するマクロ - (O+P)ut&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/m/mtiit/20160629/20160629121957.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-14 09:00:00</published>
  <title>【Excel】特定のキーワードを含む列を削除するマクロ</title>
  <type>rich</type>
  <url>https://www.mtioutput.com/entry/excel-delete-column</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
