<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ycloud</author_name>
  <author_url>https://blog.hatena.ne.jp/ycloud/</author_url>
  <blog_title>shikumika’s diary</blog_title>
  <blog_url>https://shikumika.org/</blog_url>
  <categories>
    <anon>VBA</anon>
  </categories>
  <description>ExcelのVBAで、セルのアクティブ化や選択をしようとすると、セルが存在するにも関わらず「実行時エラー '1004': Range クラスの Select メソッドが失敗しました」「Range クラスのActivate メソッドが失敗しました」というエラーが発生する時があります。 しかも、元々動作していたが、コードの他の部分を修正した後に発生ということもあります。 エラーが発生する原因と対応 セルが存在しているにも関わらずエラーとなる場合、次の状態になってる可能性があります。 Activate メソッドの場合 「セルは現在の選択範囲内にある必要がある」が満たされていない。learn.micr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikumika.org%2Fentry%2Fvba-range-activate&quot; title=&quot;【Excel VBA】セルのアクティブ化でエラーが発生する原因と対応 - shikumika’s diary&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/y/ycloud/20230911/20230911164655.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-09-14 12:30:00</published>
  <title>【Excel VBA】セルのアクティブ化でエラーが発生する原因と対応</title>
  <type>rich</type>
  <url>https://shikumika.org/entry/vba-range-activate</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
