PC Review


Reply
Thread Tools Rate Thread

Can an array be redim inside a for loop?

 
 
kcenac
Guest
Posts: n/a
 
      19th Apr 2008
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.
 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      19th Apr 2008
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

"kcenac" <(E-Mail Removed)> wrote in message
news:69e68ee6-08cc-417c-843d-(E-Mail Removed)...
> 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.


 
Reply With Quote
 
Per Jessen
Guest
Posts: n/a
 
      19th Apr 2008
Hi

Like always, show us your code for further comments.

Regards,
Per

"kcenac" <(E-Mail Removed)> skrev i meddelelsen
news:69e68ee6-08cc-417c-843d-(E-Mail Removed)...
> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redimming an array dynamically assigned from range (how to redim first dimension of a 2-D array? /or/ reverse the original array order) Keith R Microsoft Excel Programming 3 13th Nov 2007 04:08 PM
Create an array inside a For...Next loop =?Utf-8?B?RXJpYyBXaW5lZ2FybmVy?= Microsoft Excel Programming 3 27th Oct 2005 12:26 AM
ReDim Object array as parameter of Variant array Peter T Microsoft Excel Programming 4 10th May 2005 02:11 PM
redim in a web service with arrayed structors/"Redim statement requires Array" Daryl Davis Microsoft VB .NET 4 10th Feb 2004 06:19 PM
Is there a build in way to redim an Array in C# like VB.NETs "Redim" statement? Andreas =?ISO-8859-1?Q?M=FCller?= Microsoft C# .NET 2 19th Sep 2003 01:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:28 PM.