ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Controlling Listbox Scroll Bars (https://www.excelbanter.com/excel-programming/375900-controlling-listbox-scroll-bars.html)

Mike Milligan

Controlling Listbox Scroll Bars
 
I have a listbox that gets populated with several items. When the list is
longer than the listbox, scrollbars (both vert & horiz) appear, even though
there is nothing to scroll horizontally. In userforms you can use
object.scrollbars = 2 to limit this to vertical scrollbar only. Is there a
way of doing this with listboxes? I don't see a scrollbars property for my
listbox.

Thanks for the help.

Mike




Tom Ogilvy

Controlling Listbox Scroll Bars
 
change the width of the listbox so it is slightly wider than the width of
the column (or all columns if multiple columns).

--
Regards,
Tom Ogilvy

"Mike Milligan" wrote in message
...
I have a listbox that gets populated with several items. When the list is
longer than the listbox, scrollbars (both vert & horiz) appear, even though
there is nothing to scroll horizontally. In userforms you can use
object.scrollbars = 2 to limit this to vertical scrollbar only. Is there a
way of doing this with listboxes? I don't see a scrollbars property for my
listbox.

Thanks for the help.

Mike







All times are GMT +1. The time now is 09:17 AM.

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