Font size in ComboBox

Alan Nicoll

Board Regular
Joined
Feb 3, 2004
Messages
71
I want to allow the user to change the font size in a ComboBox, but doing this also changes the height of the ComboBox. Even putting in a command like ComboBox1.Height = 340 doesn't keep the box from shrinking as the font size is changed.

:oops:

Help?

Alan
 

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Alan Nicoll

Board Regular
Joined
Feb 3, 2004
Messages
71
OOPS! :oops:

My original question should have been about a ListBox, not ComboBox.

Sorry for the confusion. Autosize is a function of ComboBox.

:eek:

Alan
 

Marc

Active Member
Joined
Feb 21, 2002
Messages
388
How about setting the IntegralHeight property to false?

From microsoft forms reference:

The IntegralHeight property relates to the height of the list, just as the AutoSize property relates to the width of the list.
If IntegralHeight is True, the list box automatically resizes when necessary to show full rows. If False, the list remains a fixed size; if items are taller than the available space in the list, the entire item is not shown.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,689
Messages
5,597,559
Members
414,156
Latest member
WDMix

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
Top