Greetings
Quick question.
Which code runs quickest when looping through a large number of rows to perform calculations, for example?
For ... Next, Do ... Loop etc
Chard
Greetings
Quick question.
Which code runs quickest when looping through a large number of rows to perform calculations, for example?
For ... Next, Do ... Loop etc
Chard
It al depends on how you are using the loops and the structure of your commands.
For Next loops have a counter built in as part of the For command which makes it easy & quicker to use inside the loop as row counters
With Do Loops you need to add in your own method of tracking the rows.
If you are stepping through rows until a certain condition is met the Do loops could be faster as they can have the test component built in as part of the Do or Loop command & the For loops needs it added as seperate test condition commands
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assistedor failed to assist you
I welcome your Feedback.
Thanks mate!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks