Horje
excel vba determine number of elements in a 1D array Code Example
excel vba determine number of elements in a 1D array
'Since VBA arrays can have any integer value for the base element,
'the only sure fire way to determine how many elements is in the array
'is to calculate the value:

MsgBox UBound(Arr) - LBound(Arr) + 1		'<--for elems in 1D array

MsgBox UBound(Arr, 1) - LBound(Arr, 1) + 1	'<--for rows in 2D array
MsgBox UBound(Arr, 2) - LBound(Arr, 2) + 1	'<--for cols in 2D array




Vb

Related
excel vba factorial Code Example excel vba factorial Code Example
vba array contains Code Example vba array contains Code Example
how to do error handling in access vba Code Example how to do error handling in access vba Code Example
excel formula for last non-empty cell in a column Code Example excel formula for last non-empty cell in a column Code Example
vba round number Code Example vba round number Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8