Macro working behind a 'splash screen'

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

SIXTH SENSE

Well-known Member
Joined
Oct 29, 2003
Messages
1,883
hi!
if your 'splash screen' is a user form then try calling your
macro in the on active event of your form. just dont forget to call
doevents once in a while in your macro to update your splash scree.
I think this will do the trick just like the progress bar!
 

SGH

Board Regular
Joined
Dec 11, 2003
Messages
72
I can get this going but only the outline of my userform (which has a label box on it) appears while the macro in the background is running. Any ideas ?

Steve
 

SIXTH SENSE

Well-known Member
Joined
Oct 29, 2003
Messages
1,883
hi!
have you tried putting
Doevents
In several parts of your code?
This will update your userform.
example
sub macro1()
for i=1 to 100000
for j=1 to 10000
for k=1 to 100
z=k*rnd()
next k
doevents
next j
next i
With out the doevents your exel will look like hanging up.
but wiht that line, it will be updated.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,321
Messages
5,769,444
Members
425,546
Latest member
DisMissive

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
Top