Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
is there any command (like in java) which gives you the length of an array?
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Lookup UBound in the VBA help.
Dim Arr(1 to 100) as String MsgBox UBound(Arr) This will give 100 RBS "april27" wrote in message ... is there any command (like in java) which gives you the length of an array? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use
UBound(Arr) - LBound(Arr) + 1 in case it doesn't start at 1. -- HTH Bob Phillips (replace somewhere in email address with gmail if mailing direct) "RB Smissaert" wrote in message ... Lookup UBound in the VBA help. Dim Arr(1 to 100) as String MsgBox UBound(Arr) This will give 100 RBS "april27" wrote in message ... is there any command (like in java) which gives you the length of an array? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
a more general determination for a single dimension:
Dimensionsize = Ubound(a) - lbound(a) + 1 -- Regards, Tom Ogilvy "RB Smissaert" wrote: Lookup UBound in the VBA help. Dim Arr(1 to 100) as String MsgBox UBound(Arr) This will give 100 RBS "april27" wrote in message ... is there any command (like in java) which gives you the length of an array? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Modify array function length | Excel Worksheet Functions | |||
how do I do a variable length array based on the value in a cell | Excel Discussion (Misc queries) | |||
array length in VBA | Excel Programming | |||
Array Length. | Excel Programming | |||
Array Length. | Excel Programming |