Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Collection Key
How can I get back the key of collection object? Best regards Gabriel -- gabch ------------------------------------------------------------------------ gabch's Profile: http://www.excelforum.com/member.php...o&userid=30662 View this thread: http://www.excelforum.com/showthread...hreadid=524270 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Collection Key
Gabriel,
Ridiculous as it sounds, I don't think you can. Robin Hammond www.enhanceddatasystems.com "gabch" wrote in message ... How can I get back the key of collection object? Best regards Gabriel -- gabch ------------------------------------------------------------------------ gabch's Profile: http://www.excelforum.com/member.php...o&userid=30662 View this thread: http://www.excelforum.com/showthread...hreadid=524270 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Collection Key
You can't get a list of keys for elements in a collection unless they match
the item stored in the collection. Maybe a dictionary object from the scripting runtime would be better. -- Regards, Tom Ogilvy "gabch" wrote: How can I get back the key of collection object? Best regards Gabriel -- gabch ------------------------------------------------------------------------ gabch's Profile: http://www.excelforum.com/member.php...o&userid=30662 View this thread: http://www.excelforum.com/showthread...hreadid=524270 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Collection Key
Unfortunately, there is no way to read the keys of a collection.
You might consider using a Dictionary object. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "gabch" wrote in message ... How can I get back the key of collection object? Best regards Gabriel -- gabch ------------------------------------------------------------------------ gabch's Profile: http://www.excelforum.com/member.php...o&userid=30662 View this thread: http://www.excelforum.com/showthread...hreadid=524270 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Collection Key
Hi
I tend to hold the key, if i need it, as part of the object in the collection. So a collection of text strings would now be two element arrays - the first one the string and the second one the key. regards Paul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
data collection | Excel Discussion (Misc queries) | |||
Range collection | Excel Programming | |||
Workbook Collection | Excel Programming | |||
Collection | Excel Programming | |||
Sum textboxes in a collection | Excel Programming |