Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Modal window | Excel Programming | |||
Forms that are modal in 97 are not modal in 2003 | Excel Discussion (Misc queries) | |||
Forms that are modal in 97 are not modal in 2003 | Excel Programming | |||
Modal Forms | Excel Programming | |||
MODAL vs. NonMODAL | Excel Programming |