Excel VBA Topic 9.4 - Dynamic Memory Allocation (ReDim statement)

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Not sure if you still answer to this thread, but great great stuff! Thanks for sharing. A question that I have: Should we then always declare the array with ReDim instead of Dim? Is there any flaws in always using ReDim?

alextan
Автор

Very nice all this stuff. The great fun was however when my boss discovered I used Excell to programm my morning calls at 6h00 am sharp with a nice little (but noisy) rock music online. Pity your vba course stopped before dealing with the real fun ...

wpjowpjo
Автор

i don't get the benefit of dynamic memory allocation. if you plan on changing the number of elements in an array, why not just go back into the original Dim statement and change the number of elements there (as opposed to writing brand new lines of code)?

binarystar