Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
numelem = ubound(AllCatogary) - lbound(AllCatogary) + 1
If you want to loop through the array for i = lbound(AllCatogary) to Ubound(AllCatogary) debug.print, i, AllCatogary(i) Next i -- Regards, Tom Ogilvy "Mits" wrote in message ... Hi, I am little new VB programing, espcially in excel. So I need little help finding the funcation. I have array as following. AllCatogary = Array("Index", "Date", "Time", "Operator Name", _ "Output File Name", TextBox1.Value, TextBox2.Value) Is there a function would tell me number of element are in 'AllCatogary' array? In above case it is easy, 7 element, but when I run the code, the size of my array changes, so I like to know if there a function i can call to get the size of array at that point. Thank You, Mits. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Variable length array that exludes (possible) blanks in the middle | Excel Discussion (Misc queries) | |||
Modify array function length | Excel Worksheet Functions | |||
using VB to read in a column of values of varying length into an array | Excel Worksheet Functions | |||
how do I do a variable length array based on the value in a cell | Excel Discussion (Misc queries) | |||
Array Length. | Excel Programming |