ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Conceptual Question about ReDim (https://www.excelbanter.com/excel-programming/327437-re-conceptual-question-about-redim.html)

Tom Ogilvy

Conceptual Question about ReDim
 
Redim is primarily used with dynamic arrays


Dim myArray() as Double

redim myArray(i to j)

.. . .

if j < k then
redim preserve myArray(i to j + 100)
End if

--
Regards,
Tom Ogilvy


"Nicole B" wrote in message
...
I was wondering: in what situation is it useful to use ReDim? The VBA

help
does not explain the concept much. Does it speed up your program? Can
someone give me some basic explanations and/or examples of when it's
beneficial or necessary?

Thanks!





All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com