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
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,084
Messages
5,857,269
Members
431,867
Latest member
Dalorian

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