<?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ファイルを全て開き、その中身を集約する場面があった。そこで昔を振り返りながら、わがマクロの変遷を辿ってみる。 例えば、↓ こんな感じでファイルが三つあるとする。 実際の場面では、毎回何個か分からないだろうが、とりあえず今回は三個とする。 それぞのシートのA1には、食べ物の名前が入力されている。 昔はとにかく、決め打ちだった。パスも固定で、一つずれれば手直しが必要。 Sub Test_1() Workbooks.Open (&quot;C:\Temp\test1.xlsx&quot;) Range(&quot;A1&quot;).Copy ActiveWorkbook.Close Range(&quot;A1&quot;).…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2020%2F01%2F14%2F222130&quot; title=&quot;特定のフォルダにあるExcelファイルを全部開き、各A1の値をコピーして一つのファイルに集約する - 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/20200114/20200114195030.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-14 22:21:30</published>
  <title>特定のフォルダにあるExcelファイルを全部開き、各A1の値をコピーして一つのファイルに集約する</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2020/01/14/222130</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
