![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: OKC
Posts: 98
|
I am using the below series of inputboxes to add data. The cancel button takes me to the next inputbox, but I want it to exit the macro. What do I need to do to make the cancel button exit the macro?
Range("B11").Value = InputBox("Enter Expense Tracking Number:") Range("B17").Value = InputBox("Enter Your Name:") Range("B23").Value = InputBox("Enter Your Social Security # (no dashes):") |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,521
|
Something like this woud work:
Although to honest you would probably be better setting up a userform to take all of the data at once. I'd be pretty PO'd if I had to use these inputboxes. HTH _________________ [b] Mark O'Brien [ This Message was edited by: Mark O'Brien on 2002-05-26 13:53 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|