<?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>
    <anon>ユーザー定義関数</anon>
  </categories>
  <description>先日からフィルをマクロで操作したうえで、その戻り値をRangeとする 関数の作成を試みている。 infoment.hatenablog.com今日は、日付対応に取り組んでみる。 先日作成した際、何も考えずに停止値の型を「Long」（長整数型）にした。しかし考えてみると、これでは日付に対応できない。例えば、以下でテストしてみる。 Sub test() DataSeriesRange Range(&quot;A1&quot;), , &quot;2020/1/1&quot;, xlColumns End Sub すると当然の如く、&quot;2020/1/1&quot;と型が一致しないので怒られる。 では、引数「dsStop」の型をVariantにすればよ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2019%2F12%2F29%2F235921&quot; title=&quot;フィルをマクロで操作し、その戻り値をRangeとする関数（日付対応） - 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/20191229/20191229230440.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-29 23:59:21</published>
  <title>フィルをマクロで操作し、その戻り値をRangeとする関数（日付対応）</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2019/12/29/235921</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
