LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Self closing "modal" window ?

Hello !

I'm modifying an application written in Excel 2003 VBA.

After an operation ends, I'd like to display a confirmation message in
a window that will close itself after a given period of time (2
seconds).

This way, the user will get the feedback whithout having to click on a
MsgBox like "Ok" button.

I succesfully programmed a modeless form which will correctly do this
when used alone.

The problem is that in the application, this form is invoked from
another form which is modal. Upon displaying the confirmation message,
I get an error message saying that a non-modal window can't be open
while a modal window is open.

While making the calling modal form "modeless" may solve the problem in
that specific case, this worries me a little because this way, the user
can access the spreadsheet behind while the form is open and this is
not desired.

Searching on the net, I also found a code sample that uses the windows
api to simulate a "timer" object on a form, but was unsuccessful to
make it work.

Do anybody knows if this can be done, and if so, how ?

Thanks !


 
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
Follow link from Window("1") in Window("2") possible? Dennis Excel Programming 1 December 6th 06 04:29 AM
Excel Dialog being "Non-Modal"? [email protected] Excel Programming 0 November 24th 06 10:45 PM
Excel 2003 VBA - "Maximizing" Window & "Calculating" Workbook JingleRock Excel Programming 0 April 25th 06 05:04 AM
freeze window creates multiple "views" suffixed with ":n" dgaex001 Excel Discussion (Misc queries) 5 March 22nd 06 05:28 PM
VBA command to say "yes"/"no" to popup window Manuel Excel Programming 7 August 5th 04 10:20 AM


All times are GMT +1. The time now is 01:05 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"