I need to change the font size in an Excel combo box because the default font size is way too small. Is there a way to do this? Show This is the code I use for my macro:
Thank you.
Deduplicator 44k6 gold badges63 silver badges114 bronze badges asked Oct 3, 2011 at 14:05
It can't be done There's no formatting the font size of a forms dropdown - even programatically. If it's an absolute requirement, you'll have to switch this to an activeX control. answered Oct 3, 2011 at 14:37
AlainAlain 26.3k19 gold badges109 silver badges180 bronze badges As said by @Alain you simply can't in a clean way, or you have to use an activeX control. But here there's also a workaround. With programming, you can temporarily zoom the worksheet, to make the data validation font size appear larger.
Credits and more details: https://www.contextures.com/xldataval08.html#zoommacro answered Mar 24, 2021 at 13:22
AndrewAndrew 911 silver badge11 bronze badges Created: Jun 17, 2020 07:44 PM | Last Modified: Jun 17, 2020 07:49 PM (1844 views) | Posted in reply to message from David_Burnham 06-17-2020 or ... replace the combo box with a text box. Use the text box to show the name of the selected parameter (using a small font). Next to it, have a "select" button. Use the button script to launch a new window containing the combo box or list box with the parameter names. Since it is a separate window with no other content you should be able to display the full length names without any problem); make this window modal and update the text box when the window is closed. Here is some crude code to illustrate the idea:
-Dave How do I format text in a combobox in Excel?Format an ActiveX combo box. Click Developer > Design Mode.. Right-click the combo box and pick Properties, click Alphabetic, and change any property setting that you want. ... . Close the Property box and click Designer Mode.. After you complete the formatting, you can right-click the column that has the list and pick Hide.. How do I change the font size in a dropUnfortunately, the font size of a drop-down list can only be changed using VBA. However, you can make the font smaller around the drop-down box (or across the entire sheet), and then zoom in on the overall view. In this way, the font in the drop-down field is also displayed larger.
How do I increase font size in Formula Bar?Go to Excel options > General tab > under when creating new workbooks change the font size to any you like to see in the formula bar suppose 22. Default size is 11. Click OK. Excel will ask to restart the program for changes to take effect.
|