<?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>Excel</anon>
    <anon>VBA</anon>
  </categories>
  <description>よく、Trim関数のお世話になる。 文字列の前後にある、不要なスペースを取り除いてくれる。実は最近まで、単語間にある複数のスペースを、一つ残しで除去してくれることを知らなかった。 ここで、ふと思った。 「全部スペースだったら、何が残るのか」 確認してみたところ、どうやら全てのスペースが除去されるようだ。 何ということだ。今まで、空白行のふりをしてスペースが入力されているセルを、とても面倒な方法で処理していたとは。 Sub 空白行削除_昨日までの私() Dim myReg As RegExp Set myReg = New RegExp myReg.Pattern = &quot;^\s+$&quot; Dim r…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2019%2F05%2F28%2F231830&quot; title=&quot;スペースだけが入力されたセルに対してTrim関数を使ったら？ - 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/20190528/20190528231817.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-28 23:18:30</published>
  <title>スペースだけが入力されたセルに対してTrim関数を使ったら？</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2019/05/28/231830</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
