Results 1 to 3 of 3

Thread: How to loop number??

  1. #1
    Guest

    Unhappy

    How to loop number repeatly form 1 to 20??

    for i = 1 to 20
    msgbox "1"
    next i

    I want msgbox number 1 then 2 then 3 so on!!Is the above code right??
    How to do it??

  2. #2
    Lively Member rekcus's Avatar
    Join Date
    Jan 1999
    Location
    Kuala Lumpur
    Posts
    122

    Lightbulb Can't believe this...

    try
    Code:
    msgbox CStr(i)
    penyou!

    "The code bytes.."

  3. #3
    Member
    Join Date
    Nov 2000
    Location
    Palma de Mallorca, Spain
    Posts
    39

    Smile A little error

    Here's your corrected code
    Code:
    For i = 1 To 20
    MsgBox i
    Next i
    Code:
    On Error goto Hell

Posting Permissions

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



Click Here to Expand Forum to Full Width