Results 1 to 11 of 11

Scripting Dictionary add additional items

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    It's more fun in the Philippines :D
    MS-Off Ver
    Excel 2007
    Posts
    209

    Scripting Dictionary add additional items

    Hi experts,

    I have a code below for scripting dictionary:

                With ThisWorkbook.Sheets("computation")
                    For lctr = 2 To 13
                        aCompensation.Add .Cells(2, lctr), .Cells(5, lctr)
                    Next
                End With
                                
                aType = aCompensation.Keys
                aFruits = aCompensation.Items
    
                'i.e. 
                if aType(1) = "Fruits" then
                      'add items 
                End if
    My question is for example the 1st key is "Fruit" and the 1st item is "Apple",
    is it possible to add "Orange" on the 2nd item of "Fruit" on separate line/loop?

    Thanks in advance!
    thisisgerald
    Last edited by thisisgerald; 11-15-2012 at 06:25 AM. Reason: additional info
    Don't forget to mark your thread as [SOLVED].

Thread Information

Users Browsing this Thread

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

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