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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,215,842
Messages
6,127,227
Members
449,371
Latest member
strawberrish

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