vba forms in excel change their size by themselves?

nardagus

Active Member
Joined
Apr 23, 2012
Messages
317
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
Hello,

I have created very simple form which has only one object: listbox.

Strange thing happens. Mostly when I break code execution, but sometimes even a code runs to the end.
Size of the form decreases. This self size change causes to autoadjust the listbox, but only its size. Not font size of the lb.
When I manually increase the form size, listbox size also increases but only to the size it was set at the beginning.

The same problem was when I created a form with couple of labels, text boxes and buttons.

I'm not an expert with forms but I don't recall such problem using older versions of Excel. I didn't have this problem with Excel 2016. At least until some update...

Any ideas?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
When you say:
Your quote:
I have created very simple form

Do you mean a UserForm?
If not please explain what a Form is.

 
Upvote 0
Would you please show us the code which when you run causes the UserForm to change size.
What version of Excel are you using
 
Upvote 0

Forum statistics

Threads
1,223,754
Messages
6,174,317
Members
452,555
Latest member
colc007

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