Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default collection and limit

Hi,

I have a collection object and it seems limited to 256 items.
How is it possible to increase this limit ?

thanks a lot,

Al.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default collection and limit

Hi,

I have a collection object and it seems limited to 256 items.
How is it possible to increase this limit ?



Sub test()
Dim i As Long
Dim col As Collection

Set col = New Collection
For i = 1 To 20000
col.Add i, CStr(i)
Next

MsgBox col("20000")

End Sub

Is there something special about your particular collection

Regards,
Peter T


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default collection and limit

It's a simple collection with 21000 records...nothing special

Peter T wrote:
Hi,

I have a collection object and it seems limited to 256 items.
How is it possible to increase this limit ?



Sub test()
Dim i As Long
Dim col As Collection

Set col = New Collection
For i = 1 To 20000
col.Add i, CStr(i)
Next

MsgBox col("20000")

End Sub

Is there something special about your particular collection

Regards,
Peter T


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default collection and limit

Alain

How are you creating your collection? Can you post the code you have?

Richard


--== Alain ==-- wrote:
It's a simple collection with 21000 records...nothing special

Peter T wrote:
Hi,

I have a collection object and it seems limited to 256 items.
How is it possible to increase this limit ?



Sub test()
Dim i As Long
Dim col As Collection

Set col = New Collection
For i = 1 To 20000
col.Add i, CStr(i)
Next

MsgBox col("20000")

End Sub

Is there something special about your particular collection

Regards,
Peter T



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default collection and limit

I am beginning to wonder if Alain is a real person or a virus.

"RichardSchollar" wrote:

Alain

How are you creating your collection? Can you post the code you have?

Richard


--== Alain ==-- wrote:
It's a simple collection with 21000 records...nothing special

Peter T wrote:
Hi,

I have a collection object and it seems limited to 256 items.
How is it possible to increase this limit ?


Sub test()
Dim i As Long
Dim col As Collection

Set col = New Collection
For i = 1 To 20000
col.Add i, CStr(i)
Next

MsgBox col("20000")

End Sub

Is there something special about your particular collection

Regards,
Peter T






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default collection and limit

Sorry but i'm not a virus !


JLGWhiz wrote:
I am beginning to wonder if Alain is a real person or a virus.

"RichardSchollar" wrote:

Alain

How are you creating your collection? Can you post the code you have?

Richard


--== Alain ==-- wrote:
It's a simple collection with 21000 records...nothing special

Peter T wrote:
Hi,

I have a collection object and it seems limited to 256 items.
How is it possible to increase this limit ?

Sub test()
Dim i As Long
Dim col As Collection

Set col = New Collection
For i = 1 To 20000
col.Add i, CStr(i)
Next

MsgBox col("20000")

End Sub

Is there something special about your particular collection

Regards,
Peter T



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
template for dvd collection David Excel Discussion (Misc queries) 2 April 26th 10 11:35 PM
Collection Key gabch[_8_] Excel Programming 4 March 20th 06 04:40 PM
Nested IF limit or Open parentheses limit Fred Excel Discussion (Misc queries) 5 December 23rd 04 03:34 PM
Collection Todd Huttenstine Excel Programming 4 December 17th 04 09:41 PM
sheet collection Tom Ogilvy Excel Programming 0 October 28th 03 03:15 PM


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

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

About Us

"It's about Microsoft Excel"