PC Review


Reply
Thread Tools Rate Thread

Controlling Listbox Scroll Bars

 
 
Mike Milligan
Guest
Posts: n/a
 
      25th Oct 2006
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



 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      25th Oct 2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Scroll Bars from a Listbox on a Form MikeM Microsoft Excel Programming 3 14th Feb 2010 04:10 PM
Using a div with scroll bars - can we get the scroll bars on the left instead of the right side? UJ Microsoft ASP .NET 1 1st Nov 2006 09:32 PM
Controlling scroll bars in file dialog =?Utf-8?B?UkQ=?= Microsoft Excel Programming 1 21st Aug 2006 04:27 AM
Auto move scroll bars of listbox JON JON Microsoft Excel Programming 5 4th Feb 2005 02:35 AM
What is a clean way of controlling Scroll bars when using filters with Userforms? Bruccce Microsoft Excel Programming 4 2nd Sep 2003 10:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:01 AM.