Quantcast
Viewing all articles
Browse latest Browse all 14319

Why Prompt just print One line in command line?

Hi every one, there is a VBA code which a small test that show prompt can just print ONE line, i don't know why:

Private Sub test()
    Dim i As Integer
    For i = 0 To 5
        ThisDrawing.Utility.Prompt vbCr & "This is the " & i & " time!"
    Next
End Sub

 what i want is like this in command line:

This is the 0 time!

This is the 1 time!

This is the 2 time!

This is the 3 time!

This is the 4 time!

This is the 5 time!

but unfortunately ,the commend line just print the last one "This is the 5 time!",i don't know what is going wrong ,please help me !

Thanks in advance !

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 14319

Trending Articles