Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InputBox question

Status
Not open for further replies.

vzachin

Technical User
Feb 10, 2006
305
US
hi,

i have an inputbox where the OP enters either a Y or N or blank and then can CLICK OK.
If the OP clicks CANCEL, i want to exit the sub.
How do i code that? i've done this before but i can't find my notes. :-(

Code:
InPutDte = ""
InPutDte = inputbox$("Y or N")
InPutDte = ucase$(Create)
if InPutDte = "" or InPutDte = "N" then
exit sub : end if

thanks
zach
 
never mind...was a dumb question

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top