Can an array be redim inside a for loop?

K

kcenac

Am trying to write a vba program which needs to redim an array and
populate it with new numbers. But when i get to the part of the code
with for loop statement with the redim array inside the debugger just
jumps over that part of the code and go to another section.
 
R

Rick Rothstein \(MVP - VB\)

Yes, you can ReDim a dynamic array inside a loop (you can ReDim it at any
time actually). Show us your code and we'll see if we can spot any problems
in it.

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top