You need to be logged in to view this content. Please login or become a member.
Description
What if you need to run the same piece of code several times in a row? Here we introduce to various types of code loops.
Notes
You can exit Do loops prematurely using the Exit Do statement. You can exit For – Next loops prematurely using the Exit For statement.
Lesson Files
Lesson 1.5 – for – next loop code
Lesson 1.5 – loop examples code
Code snippets
Hi Keith
Your presentation is very helpful particularly for person like me who has nil coding experience.
Thanks.
Could you please advise “While loop” & “do while loop” are exactly same.
Is there any instance where we have to choose between these two?
You can leave a Do While loop prematurely using Exit Do, you can’t do this with a While-Wend loop. I would recommend a Do While loop.