+ Reply to Thread
Results 1 to 10 of 10

Why dictionary very slow ,is dictionary have maksimum data

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

    Why dictionary very slow ,is dictionary have maksimum data

    I am using excel 2016 64 bitt
    I have data in col a:j
    My key is a&b&c...&j
    But it very slow,is so multi Compleks criteria
    My data 80.000 row
    Please Login or Register  to view this content.
    But if using array is very fast
    But my data not similar arrange data
    Must to sort but so complek data imposibble to sort
    Please Login or Register  to view this content.
    Last edited by daboho; 10-30-2018 at 04:14 AM.

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

    Re: Why dictionary very slow ,is dictionary have maksimum data

    Don't use worksheet functions on arrays, you may find removing them resolves your issue

  3. #3
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,257
    Quote Originally Posted by Kyle123 View Post
    Don't use worksheet functions on arrays, you may find removing them resolves your issue
    What mean
    Worksheetfunction
    Your mean don't using transpose
    "ThankyouFor Attention * And Your Help!!"

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

    Re: Why dictionary very slow ,is dictionary have maksimum data

    Yes, I mean don't use transpose, it's a worksheet function.

    Also, your code won't work, you aren't accessing your dictionary, your with blocks are wrong
    Last edited by Kyle123; 10-30-2018 at 03:09 AM.

  5. #5
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,257
    Quote Originally Posted by Kyle123 View Post
    Yes, I mean don't use transpose, it's a worksheet function.

    Also, your code won't work, you aren't accessing your dictionary, your with blocks are wrong
    Its only simulation
    But ok will be test and feed back again

  6. #6
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,257

    Re: Why dictionary very slow ,is dictionary have maksimum data

    still very long time to run
    Please Login or Register  to view this content.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Why dictionary very slow ,is dictionary have maksimum data

    What is the code supposed to do?
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Why dictionary very slow ,is dictionary have maksimum data

    Is "txt" supposed to start blank after each row? Because if it is, then txt = "" is in the wrong place.... by the end of your loop, txt would contain all columns and rows?

    Please Login or Register  to view this content.
    Not sure how much that would affect the speed, but it just stood out to me

    @SHG I gather he is in early stages of a macro, filling in a dictionary with concatenated values for all columns in A:AC?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  9. #9
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,257
    Quote Originally Posted by shg View Post
    What is the code supposed to do?
    Only this code i only see in lokal window but so long to run

  10. #10
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,257
    Quote Originally Posted by Arkadi View Post
    Is "txt" supposed to start blank after each row? Because if it is, then txt = "" is in the wrong place.... by the end of your loop, txt would contain all columns and rows?

    Please Login or Register  to view this content.
    Not sure how much that would affect the speed, but it just stood out to me

    @SHG I gather he is in early stages of a macro, filling in a dictionary with concatenated values for all columns in A:AC?
    Arkadi i am has input to after for i, is same as so very long to run
    Last edited by daboho; 10-30-2018 at 04:00 PM.

+ 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. Adding dictionary into dictionary and retrieving data
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2018, 06:52 AM
  2. [SOLVED] Dictionary or Scripting.Dictionary. Binding Referencing Dim-ing. Sub routines and Function
    By Doc.AElstein in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-12-2016, 08:28 AM
  3. [SOLVED] How to compare keys in one dictionary to keys in another dictionary
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2015, 02:27 PM
  4. Storing a Dictionary into a Dictionary Object
    By pago_boss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2015, 03:04 AM
  5. Dictionary - Using a dictionary of dictionaries to hold individual orders
    By wazimu13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2015, 08:32 PM
  6. [SOLVED] Code using dictionary class is too slow- need it work faster if possible.
    By strud in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 02-04-2014, 12:09 PM
  7. [SOLVED] Linking MS dictionary as data into Excel
    By Yabbadoo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2005, 07:06 PM

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