Solved

Removing a subitem from a collection

Posted on 2002-03-29
5
184 Views
Last Modified: 2010-05-02
Is it possible to remove a sub item in a collection. The remove method removes a whole member from a Collection object but if these members contain sub item can they be removed or changed to blank?

0
Comment
Question by:AstonVilla
5 Comments
 
LVL 2

Expert Comment

by:diarmaid
ID: 6904735
P I N G!
0
 
LVL 1

Expert Comment

by:COAtheGREAT
ID: 6904757
It is not posiible with collection object. So for that task you should develop the collection class there you can write metods to do it for you.
0
 
LVL 7

Accepted Solution

by:
Z_Beeblebrox earned 50 total points
ID: 6910189
What do you mean by subitems? Do you have a collection of collections? If so, the following will work:

col.Item(3).Remove(4)

That removes the 4th "subitem" from the 3rd item.

Zaphod.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7637969
Hi AstonVilla,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Z_Beeblebrox's comment(s) as an answer.

AstonVilla, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 7754878
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now