<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deep_one</author_name>
  <author_url>https://blog.hatena.ne.jp/deep_one/</author_url>
  <blog_title>泥府湾日誌</blog_title>
  <blog_url>https://deep-one-2.hatenadiary.org/</blog_url>
  <categories>
    <anon>それ系</anon>
  </categories>
  <description>簡単な作業を自動化するためにAccessでVBAのスクリプトを書いた。 そのスクリプトで作成したクエリーを一括削除するために、また別のVBAを書いた。 すると、何故かクエリーが全部消えない。色々調査するうちにこのようなことが。 for each YYY in XXX で書いたが一部しか消えない。 for X = Y to Z で書いているうちに、「ちょうど半分しか消えない」ことが分かった。 つまり、「前から消しているのだが、消した瞬間にオブジェクトのインデックスが更新されるので、一つ進んだつもりが二つ進んでしまうことになる」 後ろから消していくと全部消える。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdeep-one-2.hatenadiary.org%2Fentry%2F20070629%2Fvba&quot; title=&quot;なんだか無能な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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-06-29 00:00:00</published>
  <title>なんだか無能なVBA</title>
  <type>rich</type>
  <url>https://deep-one-2.hatenadiary.org/entry/20070629/vba</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
