Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I have this code:
When the user selects "NO", the code continues beyond the IF statement. The value of ui1 = 6 and vbno = 7? Why the differencesd is values? What do I need to use in my If statement?
Code:
ui1 = MsgBox("This will end data entry . No data entered will be retained." & Chr(13) & "Are you sure you wish to exit?", vbQuestion + vbYesNo, "CONFIRMATION REQUEST")
Stop
If ui1 = vbNo Then Exit Sub
When the user selects "NO", the code continues beyond the IF statement. The value of ui1 = 6 and vbno = 7? Why the differencesd is values? What do I need to use in my If statement?
Last edited: