I have a code:
Private Sub OK_Click()
Dim Username As String
Username = InputBox("Username")
If Username = "Martyna" Then
MsgBox "Welcome, " & Username
Else: MsgBox "Sorry, access is denied, please Check your username and try again"
End If
End Sub
and it should ask 3 time for username then if it's not correct display message : 'sorry, access is denied, please Check your username and try again'
i have to use loop but i dont know how to do it.
any help?