Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set an array to zero
Hi all, How can I set an array to zero without looping to every element? For example in FORTRAN with a single assignment e.g. Array=0 you can do that. Is there a similar way in vba? Many thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set an array to zero
Two ways and best to see the details in the help file: Redim Erase RBS "T.Mad" wrote in message ... Hi all, How can I set an array to zero without looping to every element? For example in FORTRAN with a single assignment e.g. Array=0 you can do that. Is there a similar way in vba? Many thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Set an array to zero
Dim NumArray(10) As Integer ' Integer array.
Erase NumArray ' Each element set to 0. If this post helps click Yes --------------- Jacob Skaria "T.Mad" wrote: Hi all, How can I set an array to zero without looping to every element? For example in FORTRAN with a single assignment e.g. Array=0 you can do that. Is there a similar way in vba? Many thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
Redimming an array dynamically assigned from range (how to redim first dimension of a 2-D array? /or/ reverse the original array order) | Excel Programming | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming |