<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ExcelLover</author_name>
  <author_url>https://blog.hatena.ne.jp/ExcelLover/</author_url>
  <blog_title>Excelが大好きだ！</blog_title>
  <blog_url>https://www.excellovers.com/</blog_url>
  <categories>
    <anon>VBA</anon>
    <anon>配列</anon>
  </categories>
  <description>セル範囲を一括で配列に取り込んだ際などに、空白が紛れ込むことがあります。 そのような場合に配列から空白を除く方法を検証してみます。 空白のある元データ 簡単なデータを用意しました。 このセル範囲を配列に取込、空白の削除を行うのが以下のコードです。 Sub EmptyDelete() Dim myVar As Variant myVar = Range(&quot;A2:A6&quot;).Value myVar = ArrayEmptyDelete(myVar) Range(&quot;C2&quot;).Resize(UBound(myVar) + 1, 1).Value = _ WorksheetFunction.Transpo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.excellovers.com%2Fentry%2Farrayemptydelete&quot; title=&quot;配列から空白(Empty)を取り除く方法 - Excelが大好きだ！&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/E/ExcelLover/20181223/20181223130243.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-12-23 13:30:00</published>
  <title>配列から空白(Empty)を取り除く方法</title>
  <type>rich</type>
  <url>https://www.excellovers.com/entry/arrayemptydelete</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
