Progress bar userform

Glory

Well-known Member
Joined
Mar 16, 2011
Messages
640
Userform1 loads userform2 (progress bar). Code runs, userform2 tracks its progress with an expanding listbox.

I can't figure out how to trigger the code without forcing the user to press another buttonon the second form (the second form is meant to be a progress bar, and nothing else).

The second form doesn't actually appear until after the initialize event is done, so I can't use the initialize event.

Any ideas?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Can you not 'call' your macro?
Code:
Sub MyMacro()
Call Macro1
Call Macro2
End Sub

Or if you post your code we may be able to help,

Cheers
Colin
 
Upvote 0
I wound up using the Activate event.

But there's another issue that I'm having trouble figuring out.

I'm using this UDF to prevent "Now Printing" messages from popping up onscreen. But userform2 holds a progress bar that needs to be able to update.

So I'm wondering how to modify that function to prevent Now Printing message from popping up, but still allow the progress bar to update.

It might help if I knew how to find the "windows handle" number of the "Now Printing" dialogue windows, so that I could target them specifically.
 
Upvote 0

Forum statistics

Threads
1,224,578
Messages
6,179,654
Members
452,934
Latest member
mm1t1

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