Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This looks at Column A
Sub loopArray() Dim arrExcelValues() Dim rng As Range x = 0 Set rng = Range(Cells(1, 1), Cells(Rows.Count, 1).End(xlUp)) For Each c In rng ReDim Preserve arrExcelValues(x) arrExcelValues(x) = c.Value x = x + 1 Next For Each strItem In arrExcelValues MsgBox strItem Next End Sub "don" wrote: I would like to build an array by looping thru a set of criteria. When finished use the array to do some calculations based on the length of the array. However when I try to build an array by concatentating the rows found, ie rownum= rownum & "," & d.row the result is "11 , 12" which the array command views as 1 item in the array when I want it to be 2 items, namely 11 and 12. the result of msgbox ubound(array(rownum)) is 0 How do I concatenate rows found into an array. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Build an array constant with DATE function | Excel Worksheet Functions | |||
build up an array using formulas | Excel Programming | |||
build up an array using formulas | Excel Discussion (Misc queries) | |||
build up an array using formulas | Excel Discussion (Misc queries) | |||
build array of columns | Excel Programming |