View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Harlan Grove Harlan Grove is offline
external usenet poster
 
Posts: 733
Default Add value to array based on if...then output in VBA

"Alan Beban" wrote...
If speed of execution is an issue, one might want to remove the ReDim
Preserve from the loop:

....

If execution speed were critical, one might dispense with the ReDim Preserve
call entirely and use

Dim ar3(1 To 10)