Forms load very slowly

klorentzen

New Member
Joined
Mar 18, 2010
Messages
3
I have a workbook that utilizes several userforms to make changes throughout the workbook. Forms with just a few objects open (show) quickly, but forms with a large number of gadgets take up to 30 seconds to display. I have verified that none of my code is executing during the wait, so it's simply the loading of the form that is taking the time (in fact if I just hide and unhide it, it immediately begins executing my code).
Any ideas on how to speed this up? (BTW, Intel E8400 Core2 Duo, 4 Gig RAM, fresh install of Windows 7 Pro)

Thanks,

Kurt
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Kurt

I assume by 'gadgets' you mean controls?

Do you have any code in the initialize/activate event of these userforms?
 
Upvote 0
Yes, the "gadgets" include about 160 checkboxes, a combo box, 3 radio buttons and the usual OK|Cancel exit buttons.

I do have code in the activate event which I flagged so I could watch it execute. that code doesn't begin to execute for about 30 seconds, so I have to assume it's VBA initializing the form that's taking alll the time. The ComboBox has code in the exit event that executes instantly once the form is loaded, and code very similar to the activate code executes in maybe 1 second when the "OK" button is selected (The activate event code reads from the worksheet and assigns values to the checkboxes, radio buttons, etc. The exit code does just the opposite, filling cells with whatever changed on the form).

Thanks,

Kurt
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,872
Members
449,097
Latest member
dbomb1414

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