Results 1 to 2 of 2

Skipping Loop

Threaded View

  1. #1
    Registered User
    Join Date
    10-13-2012
    Location
    Sharjah, UAE
    MS-Off Ver
    Excel 2007
    Posts
    25

    Skipping Loop

    Hi, anybody can answer me why the MsgBox 2 and MsgBox 4 skipping on the below loop. please advice me to get this 2 & 4 without skipping.

    Sub my_for_loop()
    For i = 0 To 5
    i = i + 1
    MsgBox i
    Next i
    End Sub
    Last edited by arlu1201; 05-22-2013 at 06:18 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1