Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jim Thomlinson wrote:
In the help menu look up the Redim statement Here is one that I was just working on: Public Sub LoadRepName() Dim intCounter As Integer Dim aryRepName() as String intCounter = 0 Do While RepName < Empty ReDim Preserve aryRepName(intCounter) aryRepName(intCounter) = RepName 'go to next rep anem intCounter = intCounter + 1 Loop End Sub It is generally much better to loop first, then ReDim Preserve once at the end rather than have a ReDim Preserve call with every iteration of the loop. Alan Beban |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Elements and Arrays in Excel | Excel Worksheet Functions | |||
how do i get the intersection of two arrays in excel? | New Users to Excel | |||
arrays in excel | Excel Worksheet Functions | |||
arrays on forms in Excel | Excel Programming | |||
dynamic arrays in excel | Excel Programming |