<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kouten0430</author_name>
  <author_url>https://blog.hatena.ne.jp/kouten0430/</author_url>
  <blog_title>VBAの勉強を始めてみた</blog_title>
  <blog_url>https://kouten0430.hatenablog.com/</blog_url>
  <categories>
    <anon>EXCEL</anon>
    <anon>VBA</anon>
    <anon>プログラミング</anon>
    <anon>可視セル</anon>
    <anon>Tips</anon>
  </categories>
  <description>今回は、可視セルのみを取得するSpecialCells(xlCellTypeVisible)メソッド使用時のバグと、バクの回避方法について考えてみたいと思います。 VBA界では有名？なのかどうか分かりませんが、非表示の行または列がシート内に1以上ある状態で、単一セル対してSpecialCells(xlCellTypeVisible)メソッドを使用すると謎のバグが発生するようです。 下のコードで試してみたいと思います。（単純に、選択している可視セルに絵文字を入力するだけのものです） Sub test() Dim myRange As Range For Each myRange In Selec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkouten0430.hatenablog.com%2Fentry%2F2019%2F08%2F31%2F175342&quot; title=&quot;SpecialCells(xlCellTypeVisible)メソッドのバグ？を回避する（Tips-16） - 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/k/kouten0430/20190831/20190831170652.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-08-31 17:53:42</published>
  <title>SpecialCells(xlCellTypeVisible)メソッドのバグ？を回避する（Tips-16）</title>
  <type>rich</type>
  <url>https://kouten0430.hatenablog.com/entry/2019/08/31/175342</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
