Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim count ' counter
Dim people() As String 'array 'find how many people listed in sheet 2 column A Sheets("Sheet2").Select Range("a1").Select Selection.CurrentRegion.Select row_count = Selection.Rows.count - 1 'Subtract header Max = row_count 'array is this big ReDim people(1 To Max) 'redim array For count = 1 To Max While Not IsEmpty(ActiveCell) count = count + 1 ActiveCell.Offset(1, 0).Select people(i) = ActiveCell.Value Wend Next count |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can SUMPRODUCT work on changing arrays? | Excel Discussion (Misc queries) | |||
Updating Automatic links doesn't work with arrays | Excel Discussion (Misc queries) | |||
How to work around arrays... | Excel Programming | |||
Lots of Frustration - Lots of Arrays, Dynamic Ranges Don't Work, Help With Options | Excel Programming | |||
Arrays: querying with two variables, why doesn't it work? | Excel Programming |