RodrigoFreitas
New Member
- Joined
- Jul 26, 2010
- Messages
- 2
I wrote this macro, but every time I click the cancel button, still in the loop, someone knows how I can resolve this error?
Sub ExemploDoLoopUntil()
Dim Nome As String
Do
Nome = InputBox("Digite o nome do usuário:")
Loop Until Nome <> ""
MsgBox "O nome do usuário é: " & Nome
End Sub
Sub ExemploDoLoopUntil()
Dim Nome As String
Do
Nome = InputBox("Digite o nome do usuário:")
Loop Until Nome <> ""
MsgBox "O nome do usuário é: " & Nome
End Sub