Hi all,
I’m playing around with Class Modules for the first time, and was wondering:
The class I’m using contains data about a worksheet and it’s formatting and used range. I’ve got a number of these new class objects in a collection. I would like to loop through these objects several times. With each loop, some sheets will be determined to have no more problems to be fixed, and should be removed from the collection.
Is there a simple way to remove these objects from the collection while looping with For Each, or is it best to just use something like For x = colMyCollection.count to 1 step -1 and remove by item number?
Hope this was clear. Thanks!
-
Removing Items from a Collection (2003)
- This topic has 2 replies, 2 voices, and was last updated 16 years, 10 months ago.
AuthorViewing 0 reply threadsAuthorViewing 0 reply threads