#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default show modal

Mark,
The userform gets the focus irrespective of the vbModal value. But this
seems to work :

UserForm1.Show vbModeless
AppActivate Application.Caption

NickHK

"mark" wrote in message
...
I'm using a form to display some messages, as my process is working. I

have
it set to showModal = false, so that it's just an info message, not

something
that has to be clicked off.

But, every time the message is to be displayed, it does grab focus. Can
this be prevented?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default show modal

Thanks for the answer.

What I was hoping for was something that wouldn't interrupt you if you had
gone off to doing something "important", like reading the news on the web...

some setting that would let the info message that is the modeless form's
purpose flash up, but not commandeer the screen, and let you be...

Thanks, though.

I was wondering whether maybe loading the form, but then just passing it a
new message each time, instead of re-showing it, would do the trick. Maybe
I'll try that.. but, it's sort of low priority, as compared to some other
stuff... just annoying.


"NickHK" wrote:

Mark,
The userform gets the focus irrespective of the vbModal value. But this
seems to work :

UserForm1.Show vbModeless
AppActivate Application.Caption

NickHK


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default show modal

Mark,
Play around with AppActivate and the UserForm_Activate() event.
Otherwise you may have to resort to the Window API, SetFocus etc.

NickHK

"mark" wrote in message
...
Thanks for the answer.

What I was hoping for was something that wouldn't interrupt you if you had
gone off to doing something "important", like reading the news on the

web...

some setting that would let the info message that is the modeless form's
purpose flash up, but not commandeer the screen, and let you be...

Thanks, though.

I was wondering whether maybe loading the form, but then just passing it a
new message each time, instead of re-showing it, would do the trick.

Maybe
I'll try that.. but, it's sort of low priority, as compared to some other
stuff... just annoying.


"NickHK" wrote:

Mark,
The userform gets the focus irrespective of the vbModal value. But this
seems to work :

UserForm1.Show vbModeless
AppActivate Application.Caption

NickHK




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
Modal window Merlin[_3_] Excel Programming 1 September 28th 06 08:18 PM
Forms that are modal in 97 are not modal in 2003 Old Car Excel Discussion (Misc queries) 1 April 27th 05 08:25 AM
Forms that are modal in 97 are not modal in 2003 Old Car Excel Programming 1 April 27th 05 08:25 AM
Modal Forms MJRay Excel Programming 1 March 8th 05 05:09 PM
MODAL vs. NonMODAL JimP Excel Programming 5 November 18th 04 01:21 PM


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

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

About Us

"It's about Microsoft Excel"