![]() |
|
||||||||
| Site Links |
| Consulting |
| Knowledge Base |
| Training |
| Forum |
| Articles |
| Resources |
| Products |
| Cool Tools |
| Contact |
| About Us |
| Go to Page... |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
|
Solved: Waiting Form while macro Runing
Hello,
I am trying to create this form that will show on the screen while my macro is running to keep the user informed of whats going on. I don't want anything facy just a simple form with a picture and text. Maybe three dots at the end of the label that appear and disappear, but this is completely optional. My main issue here is that i cannot get it to work. The form loads but it never disappears from screen. My word application freezes. Here is my code VBA:
VBA tags courtesy of www.thecodenet.com
Any ideas? ![]() |
|
Local Time: 10:03 PM
Local Date: 05-18-2013 Location:
|
|
|
|
#2 |
|
|
There is a property on the userform called "ShowModal" ... you want to False. Check the help file.
Another option is to simply use the Application.StatusBar (check the help file on this) to provide updating as your code runs. This removes the complexity of understanding non-modal userforms (and when to dismiss the userform). Try the following code, to see if .StatusBar would do enough for you. VBA:
VBA tags courtesy of www.thecodenet.com
|
|
Local Time: 02:03 AM
Local Date: 05-19-2013 Location:
|
|
|
|
#3 | |||||||||||||||||||||||
|
Microsoft Word MVP 2003-2009
|
Demo Modeless Form
VBA:
VBA tags courtesy of www.thecodenet.com
|
|||||||||||||||||||||||
|
Local Time: 02:03 AM
Local Date: 05-19-2013 Location:
|
|
|
|
#4 |
|
|
Hi guys,
I implemented the suggestion provided by Frosty and it works. Well at least the fact that the form shows up while the macro is running. The problem now is that does not show any content only a white form. I am still using the original code the only thing I changed was the form property "ShowModal" false. The status bar doesn't work for me. I can only see the end part the beginning is just flickering text. I prefer the form By the way Frosty, the macro thats running behind the form is one someone help me out with...I dont know who :? ![]() This what I should see ![]() This is what I get ![]() |
|
Local Time: 10:03 PM
Local Date: 05-18-2013 Location:
|
|
|
|
#5 |
|
|
Try putting
WaitingForm.Repaint or Application.ScreenRefresh in a couple of different places. My guess is that your Application.ScreenUpdating = False may be adversely impacting this the updating of your form. |
|
Local Time: 02:03 AM
Local Date: 05-19-2013 Location:
|
|
|
|
#6 |
|
|
Forty yeah it works now.. perfect.
Thanks for the help once again |
|
Local Time: 10:03 PM
Local Date: 05-18-2013 Location:
|
|
![]() |
| Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|


