PC Review


Reply
Thread Tools Rate Thread

BeforeClose order of events?

 
 
owp^3
Guest
Posts: n/a
 
      30th Apr 2008
Ok, I understand that I can skip the "Do you want to save..." warning by
setting ThisWorkbook.Saved = True.

And I understand I can abort the Close by setting Cancel = True.

I need a better understanding of the order in which things occur because...

I Show a "Goodbye" Userform with a timer from the BeforeClose Event but it
gets covered up by the "Do you want to save..." warning. I would like it to
show only after the user has responded to the warning or if there is no
warning.

I could make it bigger so the user can read it behind the warning but I
really would like there to be only one userform/dialog at a time.

Any ideas?

Thanks,
owp^3
 
Reply With Quote
 
 
 
 
owp^3
Guest
Posts: n/a
 
      30th Apr 2008
Well, I came up with a workaround...

msgBox fires before the "Do you want to save..." warning.

So I created a msgBox with a vbYesNo button parameter. In it I give my
message and then ask the user if they want to save. If they do I force a
save. If they don't I suppress the warning message. Upside is I only get
one dialog instead of two. Downside is I can't control the appearance of the
text (i.e. fonts and alignment).

Anyway, I'd still like other options just to know but it's not so critical
now that I have a solution.

Thanks,
owp^3

"owp^3" wrote:

> Ok, I understand that I can skip the "Do you want to save..." warning by
> setting ThisWorkbook.Saved = True.
>
> And I understand I can abort the Close by setting Cancel = True.
>
> I need a better understanding of the order in which things occur because...
>
> I Show a "Goodbye" Userform with a timer from the BeforeClose Event but it
> gets covered up by the "Do you want to save..." warning. I would like it to
> show only after the user has responded to the warning or if there is no
> warning.
>
> I could make it bigger so the user can read it behind the warning but I
> really would like there to be only one userform/dialog at a time.
>
> Any ideas?
>
> Thanks,
> owp^3

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Order of Events for Sum? =?Utf-8?B?UGVuZHJhZ29u?= Microsoft Access Forms 2 24th Oct 2007 07:37 PM
order of events - dynamic checkbox events =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?= Microsoft ASP .NET 0 17th Aug 2005 11:36 PM
Order of Events Wayne Wengert Microsoft ASP .NET 1 10th Apr 2005 03:37 PM
Order of Events DK Microsoft Access Reports 2 6th Nov 2003 11:12 PM
Order of events Susan Lammi Microsoft Excel Programming 5 24th Jul 2003 10:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:00 AM.