list boxes

R

RobcPettit

Hi, Im using a userform with list boxes. In vna Im using
ListBox1.AddItem to add text. When I ad text the list boxes show scroll
bars, is there a way to stop these as I dont need them and they make
the form look untidy.
Regards Robert
 
B

Bob Phillips

The scrollbars are there as there are too many items to display. Either
reduce them, or make the listbox bigger.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
R

RobcPettit

thanks for the reply, Ive tried widening them, (scroll bars width ways
only), but I have to go about 5 times wider than the data.
Regards Robert
 
B

Bob Phillips

That sounds as though your source data has trailing spaces. Have you tried
trimming it?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
R

RobcPettit

I think you could be correct, Im entering numbers, which i have to
roung to 2 decimal places first. Ive tried trim function but this has
no effect.
Regards Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top