Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
data collection driller Excel Discussion (Misc queries) 1 October 13th 09 01:04 AM
Range collection Ernst Guckel[_4_] Excel Programming 4 May 1st 05 08:01 PM
Workbook Collection Paul Larick Excel Programming 4 March 15th 05 09:02 PM
Collection Todd Huttenstine Excel Programming 4 December 17th 04 09:41 PM
Sum textboxes in a collection Mark[_18_] Excel Programming 1 August 28th 03 04:17 AM


All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"