validation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am validating a set of conditions before the end user closes the excel
window, the validation does go on afterwhich the window closes - even if a
set of conditions has not been met. I want the user to be unable to close the
window when he tries to; if one of the conditions is not met during the
validation.
Thanks.
 
Hi Minerva,

Try to apply a
Private Sub Workbook_BeforeClose(Cancel As Boolean)
event macro, and set Cancel to True if one of the conditions is not met
during the validation.

Regards,
Stefi


„Minerva†ezt írta:
 
Thanks Stefi, it helped!

Stefi said:
Hi Minerva,

Try to apply a
Private Sub Workbook_BeforeClose(Cancel As Boolean)
event macro, and set Cancel to True if one of the conditions is not met
during the validation.

Regards,
Stefi


„Minerva†ezt írta:
 
Your feedback is appreciated!
Regards,
Stefi


„Minerva†ezt írta:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top