+ Reply to Thread
Results 1 to 3 of 3

Scripting.Dictionary (Save to file and attach to workbook)

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    105

    Scripting.Dictionary (Save to file and attach to workbook)

    Is it possible to build a dictionary in VBA and save it to a file. Then have access to the dictionary later by accessing the file / or the file within the workbook with the data that created it?

    I would rather not have to create the dictionary each time I work with this data. Yes, I should be using a database.

    Thank you.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Scripting.Dictionary (Save to file and attach to workbook)

    Hi Kalithro,

    I don't know of a quick and easy way to do what you want.

    The data can be saved to a Sheet from the Scripting Dictionary with code like:
    Please Login or Register  to view this content.

    To create the dictionary next time you open the file, you will probably have to add the entries one at a time in a loop using code like:
    Please Login or Register  to view this content.
    There may be an easier way, but I don't know of one.

    Lewis

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

    Re: Scripting.Dictionary (Save to file and attach to workbook)

    Try something like attached.
    Attached Files Attached Files

+ 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. Scripting dictionary help
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-14-2014, 09:51 AM
  2. need help with scripting dictionary
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-04-2014, 04:33 PM
  3. [SOLVED] Using Dictionary in VBA scripting
    By vnzerem in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-04-2014, 02:54 PM
  4. Scripting Dictionary
    By Tendla in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2013, 05:41 AM
  5. [SOLVED] Scripting Dictionary
    By thisisgerald in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-18-2012, 01:30 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