Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying a Collection

Status
Not open for further replies.

VeryNewbie2004

Programmer
Sep 9, 2004
16
US
I have a collection which is being returned from a public property of a class module. Compiling this collection takes in the region of one second to run.

My problem is that I want to refer to the collection a number of times within the same sub routine and naturally don't want to collate the collection everytime I want to refer to it.

Is there a way I can copy the collection to a local version or can anyone suggest any other way I can speed things up.

Thanks In Advance
 
you should be able to do the following:

Code:
dim colDestination as collection
set colDestination = SourceClass.SourceProperty

Where SourceClass.SourceProperty is your class and property.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top