ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   userform (https://www.excelbanter.com/excel-programming/403590-userform.html)

serge T

userform
 
Hello,
Could you explain why a userform.show instruction displays an empty dialog
box? I wanted to create a very simple userform to warn users they have to
wait, and this userform only contains a label "patience! macro running...".
Userform is opened modeless and it seems related.

Thanks for your help
--
Serge

[email protected]

userform
 
Have you looked at simply putting in a messagebox? Something like:
alerts = MsgBox("Please be patient while critical functions are being
preformed.", vbCritical, "Please Wait")

or some variation of that...

As to why your userform is empty - the only reason i can think of for
that one is you didn't set your userform up correctly. There isn't
really enough information there for me to know, though.



Bob Phillips

userform
 
Presuming that the userform is displayed in the same macro, it will take
over processing, and the macro waits until it shuts down.

Try having another macro that shows the form, then the primary macro is
called from the forms Activate event, not Initialize, and then shut the form
down after the primary macro finishes.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"serge T" wrote in message
...
Hello,
Could you explain why a userform.show instruction displays an empty dialog
box? I wanted to create a very simple userform to warn users they have to
wait, and this userform only contains a label "patience! macro
running...".
Userform is opened modeless and it seems related.

Thanks for your help
--
Serge




serge T

userform
 
Thanks for your reply- I tried many things: removing this simple userform and
start again, add a button; except the blue label of the userform all appear
uniform white, except when the instruction is not modeless. I also create a
new module with a simple macro just to open that userform, then it displays
properly; could it be some interaction with application.statusbar
instructions?I keep on thinking to that exciting problem this evening, maybe
the light will finally get up...
--
Serge


" wrote:

Have you looked at simply putting in a messagebox? Something like:
alerts = MsgBox("Please be patient while critical functions are being
preformed.", vbCritical, "Please Wait")

or some variation of that...

As to why your userform is empty - the only reason i can think of for
that one is you didn't set your userform up correctly. There isn't
really enough information there for me to know, though.




serge T

userform
 
To itsdedude,

I will forget that userform for that urgent application. But still I stay
puzzled that this simplest userform (I made complex ones elsewhere and this
one has only one label field) does not displays. The same userform is
displaying properly in a separate module to test it, but not in the real
application module; crazy!
anybody got an idea?
thanks
--
Serge


"serge T" wrote:

Thanks for your reply- I tried many things: removing this simple userform and
start again, add a button; except the blue label of the userform all appear
uniform white, except when the instruction is not modeless. I also create a
new module with a simple macro just to open that userform, then it displays
properly; could it be some interaction with application.statusbar
instructions?I keep on thinking to that exciting problem this evening, maybe
the light will finally get up...
--
Serge


" wrote:

Have you looked at simply putting in a messagebox? Something like:
alerts = MsgBox("Please be patient while critical functions are being
preformed.", vbCritical, "Please Wait")

or some variation of that...

As to why your userform is empty - the only reason i can think of for
that one is you didn't set your userform up correctly. There isn't
really enough information there for me to know, though.





All times are GMT +1. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com