選択している行/列の数を返す

  • Selection.Rows.Count
    • 現在選択している範囲の行数
  • Selection.Columns.Coun
    • 現在選択している範囲の列数

ネタ元