Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Removing Scroll Bars from a Listbox on a Form

I have a simple listbox (M, F), but when I try to reduce its size to just fit
the text both horizontal and vertical scroll bars fill up the box. How do I
eliminate them?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Removing Scroll Bars from a Listbox on a Form

"MikeM" wrote:

I have a simple listbox (M, F), but when I try to reduce its size to just fit
the text both horizontal and vertical scroll bars fill up the box. How do I
eliminate them?


I should have added: can it be done in the Listbox properties window, or
does it have to be done in code?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Removing Scroll Bars from a Listbox on a Form

Try making the ColumnWidths a tad less than the overall with, implicitly if
necessary. For the vertical scroll bar I think that would only appear if the
height does not accommodate all the rows.

Regards,
Peter T


"MikeM" wrote in message
...
"MikeM" wrote:

I have a simple listbox (M, F), but when I try to reduce its size to just
fit
the text both horizontal and vertical scroll bars fill up the box. How do
I
eliminate them?


I should have added: can it be done in the Listbox properties window, or
does it have to be done in code?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Removing Scroll Bars from a Listbox on a Form

Thanks, Peter. I didn't notice the entry "ColumnWidths" in the Properties
window. It was blank, so I set it to a small number and got rid of the scroll
bars!

"Peter T" wrote:

Try making the ColumnWidths a tad less than the overall with, implicitly if
necessary. For the vertical scroll bar I think that would only appear if the
height does not accommodate all the rows.

Regards,
Peter T


"MikeM" wrote in message
...
"MikeM" wrote:

I have a simple listbox (M, F), but when I try to reduce its size to just
fit
the text both horizontal and vertical scroll bars fill up the box. How do
I
eliminate them?


I should have added: can it be done in the Listbox properties window, or
does it have to be done in code?



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SCROLL BARS GSB Excel Discussion (Misc queries) 1 September 28th 07 05:03 PM
Scroll bars in a user form Capt. Bangs[_2_] Excel Programming 0 June 27th 07 10:12 PM
Controlling Listbox Scroll Bars Mike Milligan Excel Programming 1 October 25th 06 03:55 AM
Scroll bars Embalmer Excel Discussion (Misc queries) 1 December 31st 05 05:05 PM
Auto move scroll bars of listbox JON JON Excel Programming 5 February 4th 05 02:35 AM


All times are GMT +1. The time now is 08:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"