<?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>
    <anon>作ってみた</anon>
  </categories>
  <description>先日、こんな依頼を受けた。 「リストで商品名の訂正を行う際、元の文字列を残し訂正線を引いたうえで、訂正後の文字を改行して追加したい」 例えば、↓ こんな感じだ。 今までは手作業でやっていて、手間がかかって仕方がない。何とか簡単にならないかという相談だった。そこで今回は、上記の作業支援マクロに挑戦する。 取り敢えず、引数として以下の三つを準備する。 文字列が書かれたセル 変更前の文字 変更後の文字 作戦としては、こんな感じだ。 変更前と変更後の文字列を改行で結合する。 変更前の文字列分だけ、訂正線を引く。 「変更前の文字列分だけ」については、Charactersを用いて指定する。また、訂正線の有…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2019%2F07%2F18%2F230031&quot; title=&quot;元の文字列を残し訂正線を引いたうえで、訂正後の文字を改行して追加したい ① - 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/20190718/20190718223735.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-18 23:00:31</published>
  <title>元の文字列を残し訂正線を引いたうえで、訂正後の文字を改行して追加したい ①</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2019/07/18/230031</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
