<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>goosyun</author_name>
  <author_url>https://blog.hatena.ne.jp/goosyun/</author_url>
  <blog_title>つれづれ電脳記（日くらしPCに向かひて）</blog_title>
  <blog_url>https://goosyun.hatenablog.jp/</blog_url>
  <categories>
    <anon>プログラミング・マクロ</anon>
  </categories>
  <description>ワード文書中に日付を入れるのに、Wordマクロを使うと便利、という記事を先日書きました。 ⇒ こちらの記事をご覧ください。 Date関数は、今日の日付を返してくれるので、それを利用します。 Selection.TypeText Format(Date, &quot;ggge年m月d日&quot;) とすれば、カーソルの位置に、「令和４年２月５日」と入力されます。 では、昨日の日付や、明日の日付を入れるには、どうすればよいでしょうか。 簡単です。 【昨日】（前日） Selection.TypeText Format(Date - 1, &quot;ggge年m月d日&quot;) 【明日】（翌日） Selection.TypeText…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgoosyun.hatenablog.jp%2Fentry%2F2022%2F02%2F05%2F230342&quot; title=&quot;Wordマクロで前日や翌日の日付を入力 - つれづれ電脳記（日くらしPCに向かひて）&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/g/goosyun/20250426/20250426183439.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-02-05 23:03:42</published>
  <title>Wordマクロで前日や翌日の日付を入力</title>
  <type>rich</type>
  <url>https://goosyun.hatenablog.jp/entry/2022/02/05/230342</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
