Closed Thread
Results 1 to 2 of 2

Problem fetching the collections Item child values ex: item1(1)

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    2

    Problem fetching the collections Item child values ex: item1(1)

    My requirement is to implement sumproduct formula using macro without workbook function

    for that

    1. I am first reading whole excel table data into collection.

    i set range as the table including headers and add them into collection object coll_sheet

    Set r1 = ThisWorkbook.Worksheets(SheetName).Range(TableName & "[#All]")

    coll_sheet.Add r1.Value


    test1.jpg

    my collection has these items

    2. Now my question is how to access Item1(1) and item1(2,1). Since i need check different conditions and remove those column that are not satisfying the conditions. To remove i require the index for these sub items or child item values.


    Please help me out ana give some suggestions.
    Attached Images Attached Images

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Problem fetching the collections Item child values ex: item1(1)

    Hi and welcome to the forum

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

    http://www.excelforum.com/excel-prog...ml#post3679644
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Comparing values in collections
    By Bezzie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2013, 03:29 AM
  2. Collections within class module collections
    By AndyLitch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2013, 06:00 AM
  3. [SOLVED] Parent child relationships(working out parent item) for each item
    By grphillips in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-21-2013, 05:58 AM
  4. Fetching values from another tab
    By Kribulin in forum Excel General
    Replies: 7
    Last Post: 06-13-2008, 02:55 AM
  5. Collections problem
    By John in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-21-2006, 01:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1