Hi all,
Thank you in advance for your help.
I'm okay with VBA but I always get a bit confused with these message boxes when they link.
So what I want to do is to have a message box that pops up when this Excel file is attempted to close that says "Have you uploaded the data?" "Yes" or "No"
If they click "Yes" then Excel closes, if they click "No", it then leads onto the next message box that then says "Would you like to now?".
If they click "Yes" it runs the macro called "gprc", otherwise if they click "No" it then closes Excel.
I think to do this Workbook_BeforeClose will be used, but I just get very confused with the 'if' and 'when' and stuff like that with the dependent message boxes. If someone could help me out or try to explain how to do it I'd really appreciate it, and hopefully I'll learn once and for all from it!
Thank you so much for your help in advance!
sn281
Thank you in advance for your help.
I'm okay with VBA but I always get a bit confused with these message boxes when they link.
So what I want to do is to have a message box that pops up when this Excel file is attempted to close that says "Have you uploaded the data?" "Yes" or "No"
If they click "Yes" then Excel closes, if they click "No", it then leads onto the next message box that then says "Would you like to now?".
If they click "Yes" it runs the macro called "gprc", otherwise if they click "No" it then closes Excel.
I think to do this Workbook_BeforeClose will be used, but I just get very confused with the 'if' and 'when' and stuff like that with the dependent message boxes. If someone could help me out or try to explain how to do it I'd really appreciate it, and hopefully I'll learn once and for all from it!
Thank you so much for your help in advance!
sn281
Last edited: