Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default BeforeClose order of events?

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default BeforeClose order of events?

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
beforeclose placement Curt Excel Discussion (Misc queries) 9 August 27th 07 08:00 PM
BeforeClose Event JT Excel Programming 2 April 10th 07 03:52 PM
Application.Undo failing with specific order of events Bill P Excel Programming 0 August 3rd 05 07:28 PM
BeforeClose vs Auto_Close [email protected] Excel Programming 16 June 3rd 05 10:06 PM
Order of events Susan Lammi Excel Programming 5 July 24th 03 10:49 PM


All times are GMT +1. The time now is 05:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"