PC Review


Reply
Thread Tools Rate Thread

How can I increase the capacity of a listbox?

 
 
Hathor
Guest
Posts: n/a
 
      5th May 2008
My program is a complex Excel program. I have two forms of identical output.
I use file io to create a printable output file. That works OK. I also
want to put the same output (about 1000 lines of text) into a listbox.
However the listbox seems to have a maximum capacity of only 300 lines.
(More accurately the maximum capacity seems to be the number of characters in
the box, rather than the number of lines). Is there any way I can increase
the capacity of a listbox? I guess my backup plan is to use 2-3 listboxes
with the first part in the first box, and so one, but that is rather hokey.
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      5th May 2008
I just put a listbox on a userform and set the rowsource for 1001 rows
without any problem. I didn't try arrays or additem, but I would suspect
they will allow more than 300 items in a single column listbox.

"Hathor" wrote:

> My program is a complex Excel program. I have two forms of identical output.
> I use file io to create a printable output file. That works OK. I also
> want to put the same output (about 1000 lines of text) into a listbox.
> However the listbox seems to have a maximum capacity of only 300 lines.
> (More accurately the maximum capacity seems to be the number of characters in
> the box, rather than the number of lines). Is there any way I can increase
> the capacity of a listbox? I guess my backup plan is to use 2-3 listboxes
> with the first part in the first box, and so one, but that is rather hokey.

 
Reply With Quote
 
Hathor
Guest
Posts: n/a
 
      5th May 2008
Here is the baby program that I wrote that simulates my real program:

For i = 1 To 1000
Me!List1.AddItem Str(i) + "
**************************************************************"
Next i

Here is the last line shown in the list box:

415 **************************************************************
 
Reply With Quote
 
Gary Keramidas
Guest
Posts: n/a
 
      5th May 2008
just did this and it worked fine. how much ram do you have?

For i = 1 To 50000
Me!ListBox1.AddItem Str(i) + " "
Next

--


Gary


"Hathor" <(E-Mail Removed)> wrote in message
news:AF73C223-CDE3-4E2A-815F-(E-Mail Removed)...
> Here is the baby program that I wrote that simulates my real program:
>
> For i = 1 To 1000
> Me!List1.AddItem Str(i) + "
> **************************************************************"
> Next i
>
> Here is the last line shown in the list box:
>
> 415 **************************************************************



 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      5th May 2008
It would be limited by memory, but as Gary demonstrated, if you have the
storage capacity, it a listbox can handle a pretty good sized load.

"Hathor" wrote:

> Here is the baby program that I wrote that simulates my real program:
>
> For i = 1 To 1000
> Me!List1.AddItem Str(i) + "
> **************************************************************"
> Next i
>
> Here is the last line shown in the list box:
>
> 415 **************************************************************

 
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
Need to increase my C Drive capacity Jonners Windows Vista Performance 4 27th Dec 2007 04:49 PM
Increase the capacity of an Excel spreadsheet =?Utf-8?B?U3RldmVmcm9tQUdJTlQ=?= Microsoft Excel Misc 4 10th Jul 2006 09:24 PM
how do i increase the capacity in the deleted folder? =?Utf-8?B?ZHQ0NmR0NDZkdDQ2?= Microsoft Outlook Discussion 4 25th Sep 2005 05:22 PM
How to increase DVD capacity Dirk Windows XP MovieMaker 6 7th Jul 2004 09:27 AM
Increase email capacity Sal Windows XP MovieMaker 1 3rd Feb 2004 03:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:45 PM.