+ Reply to Thread
Results 1 to 7 of 7

Where is the reference for this library? CreateObject(“Scripting.Dictionary”)

  1. #1
    Registered User
    Join Date
    01-13-2020
    Location
    usa
    MS-Off Ver
    office 365
    Posts
    15

    Where is the reference for this library? CreateObject(“Scripting.Dictionary”)

    I was hoping to use the Scripting.Dictionary. However, I can't find the reference to
    include. Lord I've checked a lot of 'close to' libraries. No luck. How do I include this library?

    Please Login or Register  to view this content.
    Error message is 'Object required'.

    Thank you.

    excel 365

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Where is the reference for this library? CreateObject(“Scripting.Dictionary”)

    You've go the wrong type of quotes, they should be " not “ & ”
    If that's just formatting when posting to the forum, it's the "Microsoft Scripting Runtime" library, but using that code you don't need to set a reference to it.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831
    (removed as fluff get it right !)

  4. #4
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Where is the reference for this library? CreateObject(“Scripting.Dictionary”)

    Message removed ... due to the messages before.

  5. #5
    Registered User
    Join Date
    01-13-2020
    Location
    usa
    MS-Off Ver
    office 365
    Posts
    15

    Re: Where is the reference for this library? CreateObject(“Scripting.Dictionary”)

    Thank you.
    I found there's actually a 'built in' that seems to work as it should. Went with

    Function BuildEmpList() As Object
    Dim d As Object
    Set d = New Dictionary

    (I'll keep an eye on quotes. I think I pasted that right out of the excel vba editor.)

    Thanks again

  6. #6
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,150

    Re: Where is the reference for this library? CreateObject(“Scripting.Dictionary”)

    Use the following instead of declaring the variable "d" as object;

    Please Login or Register  to view this content.

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Where is the reference for this library? CreateObject(“Scripting.Dictionary”)

    Glad it's sorted & thanks for the feedback

+ 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] 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
  2. [SOLVED] problem converting to CreateObject("Scripting.Dictionary") method
    By dschmitt in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-24-2015, 04:19 AM
  3. Mac excel error Runtime Error 429 due to CreateObject("Scripting.Dictionary")
    By iamstevetay in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2015, 04:21 PM
  4. What is With CreateObject("Scripting.Dictionary")
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2015, 01:50 PM
  5. Replies: 5
    Last Post: 09-10-2014, 02:12 PM
  6. [SOLVED] CreateObject("scripting.dictionary") Add Item Problem---->Empty Cells
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2014, 05:04 PM
  7. [SOLVED] How to understand and use CreateObject("Scripting.Dictionary")
    By Darthzo in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-03-2013, 07:21 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