1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Excel VBA】そのExcelファイル形式で使用できる行数、列数の最大数をVBAで取得する。

1
Posted at

メモとして残します。

VBAコードの改修の際2003形式の最大行数は「65536」であり、その数値をべた書きしているコードでした。
今回調査して、ファイル形式毎に動的に天井の数値を取得するように改修しなおしたため、ついでに備忘録として残しました。

■やり方

'最大列数
max_Columns = Columns.Count
'最大行数
max_Rows = Rows.Count

■余談

最大だと語弊があるかもなので、どちらかというと限界列数限界行数という表現のほうがしっくりくるかもです。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?