<?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で集計・分析を考慮すると、セルを結合しないことが推奨されますが、表を見やすくするために同じ値のセルを結合したいことがあります。 この場合、個人的には、【Excel】セルを結合せずに「条件付き書式」で見やすい表に一括変換 を第一選択としています。 しかし、セルの中央に文字をレイアウトしたい場面や、文字数が多い場合などはセル結合をしたくなることもあり、マクロで「縦方向に連続する同じ値のセルを自動結合」のサンプルです。 内容： アウトプットイメージ 事例の前提 シンプルな事例のVBA 左側列も考慮したVBA 事例のVBAと「条件付き書式」の設定例の対応 「シンプルな事例のVBA」に対応する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikumika.org%2Fentry%2Fvba-cellmerging&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/20240208/20240208094352.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-02-08 12:30:00</published>
  <title>【Excel VBA】縦方向に連続する同じ値のセルを自動結合</title>
  <type>rich</type>
  <url>https://shikumika.org/entry/vba-cellmerging</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
