<?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で、並び替えの複数条件（キーとなる列、昇順・降順）を可変設定する汎用的なコードサンプルです。データ範囲も固定ではなく、最終行と最終列の情報から範囲が可変します。 コードの再利用性や可読性を向上させるため、処理（プロシージャ）をパーツ化し、ParamArrayを利用して引数の数を可変にした具体例です。 ParamArrayを利用すると、引数の数が固定されず、同様の処理を一つのパーツで表現でき、活用の幅が拡がります。 前回記載した【Excel VBA】処理のパーツ化で引数を省略可能にする方法と併せて、汎用性の高いパーツの作成に便利です。 事例の前提 サンプルの前提は次の状態です。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikumika.org%2Fentry%2Fvba-paramarray&quot; title=&quot;【Excel VBA】並び替えで複数条件を可変設定するサンプル（ParamArrayの事例） - 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/20231212/20231212075643.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-12-13 12:30:00</published>
  <title>【Excel VBA】並び替えで複数条件を可変設定するサンプル（ParamArrayの事例）</title>
  <type>rich</type>
  <url>https://shikumika.org/entry/vba-paramarray</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
