<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kotori-ChunChun</author_name>
  <author_url>https://blog.hatena.ne.jp/Kotori-ChunChun/</author_url>
  <blog_title>えくせるちゅんちゅん</blog_title>
  <blog_url>https://www.excel-chunchun.com/</blog_url>
  <categories>
    <anon>Excel</anon>
    <anon>VBA</anon>
  </categories>
  <description>よく Excel VBA の Application.Wait と WindowsAPIの Sleep は何が違うんですか？という質問をされることがあります。これは、疑問に思うのは無理もありません。結果だけ見れば「待つ」という同じ機能に見えます。 しかし、両者は全く異なったアプローチによって「待つ」実現しており、それぞれに適した使い方があります。 この記事では、筆者の個人的な経験と推測に基づいて、両者の違いを比較・解説していきます。 一般的な使用例 解説へ入る前に、一般的なWaitとSleepの書き方を紹介しておきます。 ※コード中の Rem はコメントです。 Application.Wait…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.excel-chunchun.com%2Fentry%2F20220328-wait-sleep-diff&quot; title=&quot;VBAのApplication.WaitとSleepの違い - えくせるちゅんちゅん&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/K/Kotori-ChunChun/20220328/20220328001203.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-28 00:13:52</published>
  <title>VBAのApplication.WaitとSleepの違い</title>
  <type>rich</type>
  <url>https://www.excel-chunchun.com/entry/20220328-wait-sleep-diff</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
