+ Reply to Thread
Results 1 to 7 of 7

Sort key and item in dictionary using arraylist

  1. #1
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,513

    Sort key and item in dictionary using arraylist

    1.I want sort key and item in dictionary using arraylist
    2.how to see item in arraylist
    If in dict msgbox join(dic.items,",")
    How to do in arraylist
    Please Login or Register  to view this content.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,338

    Re: Sort key and item in dictionary using arraylist

    How about this.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,513

    Re: Sort key and item in dictionary using arraylist

    Thank you bakerman
    [code]Sub()
    Dim dic as object
    Set dic createObject("Scripting Dictionary")

    dic("z") = "xxhh"
    dic("x") = "hhhh"
    dic("g") = "aa"
    dic("a") = "bb"
    How to sort key in dic and item also to sort using arraylist
    How to show items in dic after sort
    Key in dic than item will be auto to sort
    In arraylist is can to show items of dic ?
    Thank my friend

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Sort key and item in dictionary using arraylist

    Though I have never seen it in practice, a dictionary is not guaranteed to maintain its order. If you need order, you may be better off using a collection

  5. #5
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,513

    Re: Sort key and item in dictionary using arraylist

    Kyle123
    Or.like this
    In dic has key and item
    In array list how to show item in arraylist after sort
    Please Login or Register  to view this content.
    Last edited by daboho; 10-22-2018 at 02:47 AM.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Sort key and item in dictionary using arraylist

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,513

    Re: Sort key and item in dictionary using arraylist

    thankyou every body late post because server is error
    "Presh Star Who has help you *For Add Reputation!! And mark case as Solve"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Join 3 arrays/arraylist/ranges and pass them to dictionary
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2018, 07:49 AM
  2. [SOLVED] Get total of an item in dictionary
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2017, 07:02 PM
  3. [SOLVED] Best object (array, dictionary, arraylist etc) to sort values in columns
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2017, 08:28 AM
  4. [SOLVED] Can a dictionary key hold more than one item?
    By dwx in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2015, 07:00 AM
  5. [SOLVED] Can a dictionary key hold more than one item?
    By dwx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2015, 04:37 AM
  6. [SOLVED] If dictionary key exists add new item to existing item array
    By strud in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-25-2014, 01:54 PM
  7. 2 Dimentional Array as Dictionary Item
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-05-2011, 11:13 AM

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