<?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>職場で、こんなリクエストをいただいた。 「指定パス以下のフォルダについて、階層構造をExcelに書き出せませんか」ただ羅列するのではなく、階層構造が分かるように書き出せと？ 取り組んでみた。 テスト用に、Ｃドライブ下にフォルダを幾つか準備した。 書き出しのイメージとしては、こんな感じだろうか。 ところが色々調べてみるうちに、ディレクトリやファイルをツリー状に表示する「Tree」というコマンドがあることを知った。何だ、良いのがあるじゃないか。そこで、以前紹介したこちら ↓ の三番目の方法を応用してみた。 infoment.hatenablog.com Function Tree(folder_p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2020%2F07%2F05%2F125512&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/20200705/20200705123344.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-07-05 12:55:12</published>
  <title>フォルダの階層構造を書き出してみる</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2020/07/05/125512</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
