<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katoriexxxkatorie</author_name>
  <author_url>https://blog.hatena.ne.jp/katoriexxxkatorie/</author_url>
  <blog_title>katorieのブログ</blog_title>
  <blog_url>https://katorie.hatenablog.com/</blog_url>
  <categories>
    <anon>VBA</anon>
  </categories>
  <description>納入実績表で、営業さんがある案件に背景色をつけたんですけど、 こんなふうに、 行全体を塗りつぶしてしまったので、並べ替えなどするとこんなふうに、 値の入っていないセルが残ってしまう。これが気持ち悪いので、値の入ってる列までの塗りつぶしに変更するコードを書きました。 他のシートでも使えるように、何列分の塗りつぶしにするかは最初にユーザーが入力します。 Option Explicit Sub 背景色範囲変更() '-----仕様----- '行全体の背景色を設定しているところを、指定した範囲だけの設定に変える Const kondo_color = 16776960 '近藤さんが好きな色 Dim …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatorie.hatenablog.com%2Fentry%2F20130305%2F1362453365&quot; title=&quot;行全体が塗りつぶされているExcelシートを指定した範囲だけの塗りつぶしに変える - katorieのブログ&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/katoriexxxkatorie/20130305/20130305115938.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-05 12:16:05</published>
  <title>行全体が塗りつぶされているExcelシートを指定した範囲だけの塗りつぶしに変える</title>
  <type>rich</type>
  <url>https://katorie.hatenablog.com/entry/20130305/1362453365</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
