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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,213,563
Messages
6,114,332
Members
448,566
Latest member
Nickdozaj

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