Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
So you want to resize the array each time you loop? If so then take a look at
ReDim Preserve. Something like this... Sub Tada() Dim MyArray() As Long Dim lng As Long For lng = 0 To 9 ReDim Preserve MyArray(lng) MyArray(lng) = lng Next lng For lng = LBound(MyArray) To UBound(MyArray) MsgBox MyArray(lng) Next lng End Sub -- HTH... Jim Thomlinson "Student" wrote: Hello i have an array inside a for statment and i was to reset the array everytime the for statment run how may i rest an array please advice thank you |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF statement inside a SUMIF statement.... or alternative method | Excel Worksheet Functions | |||
How to write an Or statement inside Sumproduct? | Excel Worksheet Functions | |||
vlookup inside an if statement? | Excel Discussion (Misc queries) | |||
vlookup inside an if statement? | Excel Worksheet Functions | |||
Date Format Inside of a SUMIF Statement | Excel Worksheet Functions |