Array
Static Arrays
Brian Element
A static array has a fixed size or number of elements. You specify the array size when you declare it, and the size cannot change during program execution. The size will be one more than n because VBA array indexes start by default at 0.
You can use an integer variable or constant as the index.
- Read more about Static Arrays
- 2 comments
- Log in or register to post comments
Dynamic Arrays
Brian Element
A dynamic array does not have a fixed size. It can be enlarged or shrunk as needed by code during program execution. A dynamic array is declared by using empty parentheses in the Dim statement.
Before using the array, you must set its size using the ReDim statement.
- Read more about Dynamic Arrays
- 6 comments
- Log in or register to post comments