ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   width of combo box control on toolbar (https://www.excelbanter.com/excel-programming/391782-width-combo-box-control-toolbar.html)

Smallweed

width of combo box control on toolbar
 
Here's a strange one: I can change the width of my custom combo box control
(on a toolbar) with the following.

CommandBars("My Toolbar").Controls("My Combobox").Width = 200

It looks great...that is until I click on the down arrow when I find the
actual list is still the old narrow width, tucked up at the left hand side of
the combo box.

I'm in Excel 2002/XP - has anyone any ideas?

Thanks.


Smallweed

width of combo box control on toolbar
 
I've found it - it's DropDownWidth. For some reason it doesn't appear in the
list of properties when you hit the full stop (but it's in Help)

"Smallweed" wrote:

Here's a strange one: I can change the width of my custom combo box control
(on a toolbar) with the following.

CommandBars("My Toolbar").Controls("My Combobox").Width = 200

It looks great...that is until I click on the down arrow when I find the
actual list is still the old narrow width, tucked up at the left hand side of
the combo box.

I'm in Excel 2002/XP - has anyone any ideas?

Thanks.



All times are GMT +1. The time now is 12:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com