User Form timer

mike.hansford

New Member
Joined
Dec 23, 2008
Messages
2
I am a real beginner to VBA so bear with me...

I have a workbook that changes data from a drop down menu, which then takes around 20 seconds to calculate.

I have created a userform with a loading SWF file which i'd like to display for this duration.

I can show the user form but when i try to hide userfrom it continues to run. here is my code

Sub loading()


UserForm1.Show


Application.OnTime Now + TimeValue("00:00:05"), Wait

Unload UserForm1

End Sub


I am using Excel 365 pro plus
Thanks

Mike
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi Dave,

Thanks for the link, it did exactly what i needed, however it seems that you cannot open the userform until the calculations have completed! This somewhat makes my userform pointless as it starts the timer after the calculations have completed.
Is this something you are aware of or know how to get around?

Thanks

Mike
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top