<?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>先日、このような困りごとをお見掛けした。 システムから吐き出された複数のExcelファイルがある。 機械的に吐き出されているため、列幅未調整で、文字が見切れている。 これらのファイル全てについて、列幅を自動調整する必要がある。 挑戦してみた。 まず、いつもの「なんちゃって個人情報」から、対象となるファイルっぽい ものを作成してみた。 中身は、こんな感じだ。 今回は、こんな作戦で行ってみよう。 まず、サブプロシージャは二つ作成する。 ファイル内の列幅調整用。 複数ファイルに対する処理ループ用。 列幅調整については、セル内で折り返されている場合を考慮して、 一旦びよーんと伸ばしてから自動調整してみ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2021%2F03%2F05%2F225229&quot; title=&quot;複数あるExcelファイルを開いて列幅調整 - 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/20210305/20210305221541.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-03-05 22:52:29</published>
  <title>複数あるExcelファイルを開いて列幅調整</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2021/03/05/225229</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
