<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Infoment</author_name>
  <author_url>https://blog.hatena.ne.jp/Infoment/</author_url>
  <blog_title>Infomentのブログ ～Excel VBA奮闘記～</blog_title>
  <blog_url>https://infoment.hatenablog.com/</blog_url>
  <categories>
    <anon>Excel</anon>
    <anon>VBA</anon>
    <anon>ピボットテーブル</anon>
    <anon>作ってみた</anon>
  </categories>
  <description>今日は、職場で受けた相談をアレンジして紹介。 いつもの「なんちゃって個人情報」で、Ａ列を「グループNo.」に変更した。 今回は無作為に、１～５でグループ分け。 このテーブルを用いて、ピボットテーブルを作成。 このたび受けた相談は、マクロでグループ番号を３桁に出来ないか？というもの。 具体的には、こんな感じだ。 そこで今回は、表示形式の設定で対応することにした。 早速、マクロの記録で概要を確認。すると、こんなコードが記録された。 Sub Macro1() ActiveSheet.PivotTables(&quot;ピボットテーブル1&quot;).PivotSelect &quot;グループNo[All]&quot;, xlLabel…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finfoment.hatenablog.com%2Fentry%2F2020%2F04%2F28%2F225530&quot; title=&quot;ピボットテーブルの行の列（RowRangeプロパティ） - Infomentのブログ ～Excel 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/I/Infoment/20200428/20200428223057.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-28 22:55:30</published>
  <title>ピボットテーブルの行の列（RowRangeプロパティ）</title>
  <type>rich</type>
  <url>https://infoment.hatenablog.com/entry/2020/04/28/225530</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
