Auto 'redesigning' userforms without flashes and movements

Oliver Dewar

Board Regular
Joined
Apr 17, 2011
Messages
201
Hi All,

I have userforms that 'redesign' themselves - the layout of textboxes and labels, the size of the userform etc - depending on the value in a certain cell.

What you see when the userform 'redesigns' itself is flashes of the original size of the userform, or labels in their original position before they move, when the userform is activated.

Sometimes there is no visible movement or changes, other times it's very noticeable.

I'm just wondering if there is a way to get excel to load the userform invisibly and then just show the completed result.

I tried:

Code:
application.screenupdating = false
Load userform1
application.screenupdating = true
userform1.show

but I still see flashes of the changes as they happen when the form activates.

This is purely cosmetic as the functions are totally fine. I just like everything to be as pro and stable as possible, flashes and changes seem untidy.

Any thoughts?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Are you redisigning the form and its controls in the form Activate event ? If so try doing it in the Initialize event instead and see what happens.
 
Upvote 0
:ROFLMAO:
Jaafar... you've nailed it!

That's exactly what it was. I had the redesign code in the activation event and when I moved it to the initialize event it opened without the 'flashes' etc.

Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,258
Members
449,149
Latest member
mwdbActuary

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