Community
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 !
Hi,
try vbCrLf instead of vbCr.
- alfred -
Hi,Alfred.NESWADBA,many thanks for your reply!
indeed, it really works,thank you so much!