<?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>
  </categories>
  <description>ファイル名が重複しているときに自動ナンバリングしたファイル名を返すメソッド 頭の体操に作ってみた。 ExportAsFixedFormatメソッドで新規ファイルを作成したときなんかに、同一名のファイルが存在したときの対策用。 たとえば、保存先に「ち～んｗ.pdf」というファイルを保存しようとしたときに、既に同一名のファイルが存在した場合、「ち～んｗ(1).pdf」、「ち～んｗ(2).pdf」……といった具合に新たなファイル名にして保存するために、ナンバリングしたファイル名を返す、というふうにしたい。 コーディング 書いたコードは次の通り。 リスト１ 標準モジュール Public Functio…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakashi-keirin.hatenablog.com%2Fentry%2F2019%2F03%2F23%2F091057&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>https://cdn-ak.f.st-hatena.com/images/fotolife/a/akashi_keirin/20190323/20190323090417.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-23 09:10:57</published>
  <title>ファイル名が重複するときに自動ナンバリングする</title>
  <type>rich</type>
  <url>https://akashi-keirin.hatenablog.com/entry/2019/03/23/091057</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
