<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akashi_keirin</author_name>
  <author_url>https://blog.hatena.ne.jp/akashi_keirin/</author_url>
  <blog_title>素人がExcelVBAによる「一人働き方改革」に挑むブログ</blog_title>
  <blog_url>https://akashi-keirin.hatenablog.com/</blog_url>
  <categories>
    <anon>VBA覚書</anon>
    <anon>WordVBA</anon>
  </categories>
  <description>昨日の記事で、Wordの表からExcelに転記すると、ハナクソみたいなやつがテキストの末尾についてくると書いた。 で、そのハナクソを除去するのに、Replace関数を使っていた。 このことについて、Twitterの数少ないVBA関係のフォロワーさんから、 Left関数でやった方がよくね？ とのご指摘を受けた。 なるほど。確かにそうだ。やりたいことは「右端の邪魔な文字を消す」ということなのだから、素直に右端の邪魔な文字を削る、というコードにすべきなのだ。昨日の例で言えば、 'str はString型の変数 str = objDoc.Tables(1).Cell(i, 1).Range.Text …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakashi-keirin.hatenablog.com%2Fentry%2F2017%2F02%2F24%2F215542&quot; title=&quot;「ハナクソ」の除去について - 素人がExcelVBAによる「一人働き方改革」に挑むブログ&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>2017-02-24 21:55:42</published>
  <title>「ハナクソ」の除去について</title>
  <type>rich</type>
  <url>https://akashi-keirin.hatenablog.com/entry/2017/02/24/215542</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
