![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: Mar 2002
Location: Northampton, UK
Posts: 33
|
I'm designing a booking system and have created a macro to clear the form so it's ready for the next data entry. The problem is the booking needs to be printed and added to the database from the form first. What i'm wondering is how would i get a pop up message which reminds the user of this where it is possible for an "OK" and a "cancel" style option. At the moment all that happens is the message pops-up asking if the booking has been saved and added and the user can only click ok which will then clear the form regardless of whether it's been added or printed.
Copy of what i'm using at the moment is below: MsgBox "Have You Printed and added this booking before clearing?", vbInformation Thanx for any help, BEX |
|
|
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Hey Beckwa, perhaps the code below will help:
Select Case MsgBox("Have You Printed and added this booking before clearing?", vbYesNo) Case vbYes 'your code Case vbNo 'your code End Select Hope so. Cheers, Nate [ This Message was edited by: NateO on 2002-03-13 12:07 ] |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: Northampton, UK
Posts: 33
|
Thank you very much for your help!!! It worked really well
Bex |
|
|
|
|
|
#4 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Nice Bex.
[ This Message was edited by: NateO on 2002-03-13 12:53 ] |
|
|
|
|
|
#5 |
|
New Member
Join Date: Mar 2002
Posts: 13
|
Could you please explain more? How to "Select Case MsgBox("Have You Printed and added this booking before clearing?", vbYesNo) "
Thanks |
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2002
Location: Northampton, UK
Posts: 33
|
Lol u show off!!
BEX |
|
|
|
|
|
#7 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
Bex, me, showing off?
I can certainly explain more WYTT, what would you like to know? Cheers y'all, Nate [ This Message was edited by: NateO on 2002-03-13 15:20 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|