mahaveer
Member
I have put the following code m i right ?
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
msgbox "Do you want to add one more text box",vbYesNo
If ans = Yes then
textbox3.visible = true
textbox3.setfocus
else
commandbutton1.setfocus
end if
end if
End Sub
If i m right then why i am receiving msgbox 2 time when i exit from textbox1?
Thank You
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
msgbox "Do you want to add one more text box",vbYesNo
If ans = Yes then
textbox3.visible = true
textbox3.setfocus
else
commandbutton1.setfocus
end if
end if
End Sub
If i m right then why i am receiving msgbox 2 time when i exit from textbox1?
Thank You