0
1

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コース第6回内容

Posted at

全12回 Excel VBAコースの第6回の内容です。

2次元配列

2次元配列を使うことで、複数行×複数列のデータを持つことができます。
配列の宣言時の添え字を2つ書くと2次元配列になります。

Dim 配列(縦(行),横(列)) As Integer

'例
Dim Array(4,3) As Integer

上記例の場合、下の表のようにデータが入ります。

0 , 0 0 , 1 0 ,2
1 , 0 1 , 1 1 ,2
2 , 0 2 , 1 2 ,2
3 , 0 3 , 1 3 ,2
0
1
1

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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?