Solved

Collection objects editable?

Posted on 2001-06-20
2
174 Views
Last Modified: 2010-05-02
Hi,

Is it possible to edit a UDT after it has been added to a collection? I want to do the following:

colRows.Item(lngCurrRecord).arrFields(Index) = Value

As far as I can tell the only way to do this is to set a variable equal to the udt, remove the item from the collection, change the udt, then re-add it to the collection, which is not very clean or efficient.

Zaphod.
0
Comment
Question by:Z_Beeblebrox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
rmichels earned 50 total points
ID: 6212969
What I generally do is create an object that wraps the UDT.  Then use methods on the object to access the internal components of the UDT
0
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 6214909
Well that works. It's strange that just using a UDT doesn't work. Oh well.

Zaphod.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

691 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