By using vba.booksticle.com you agree to our cookie policy, We and our partners operate globally and use cookies, for multiple purposes

948 Steps to 6 Figures by Learning Excel-VBA and Other Skills



Step 240 - For Loop


This is a first pass of a for loop brain dump

Examples
  • for i = 1 to n
  • for each c in cells

    Topics
  • Loops - So powerful
    • Do
    • For
    • Repeat Until
  • Basic
  • Exiting
    • exit for
  • nested
  • For i = 1 to n
  • For i = 1 to n step 2
  • for i = n to 1 step -1
  • Arrays
  • Lbound, Ubound
  • For each sh in Sheets
  • Next
  • Skipping
  • Examples
  • Look at code examples
  • Deletion
  • flowchart logic with if's and goto
  • DoEvents
  • Application.statusbar
  • Problems
  • Does at least 1x
  • in debugger - for i = 1 to n: ? i: next

  •    Table of Contents | Send us your feedback | © 2025 All Rights Reserved | Edit