LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA question - Set reference to run Scripting.Dictionary

in the VBE, Tools=References, scroll down through the list until you see
Microsoft Scripting Runtime.
Click the checkbox and the click OK.

You should then see scripting in the object browser.

or use late binding (no reference required)

Sub Tester1()
Dim dic As Object
Set dic = CreateObject("Scripting.Dictionary")
dic.Add "ABCD", "Item1"
dic.Add "ABCE", "Item2"
MsgBox dic.Item("ABCD")

End Sub

--
Regards,
Tom Ogilvy


"ajliaks " wrote in message
...
Hi

How do I set a reference to MS Scripting runtime in order to run a
Scripting.Dictionary

Thanks.


---
Message posted from http://www.ExcelForum.com/



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting Help Jeremy Excel Discussion (Misc queries) 1 September 21st 09 05:57 PM
VBA scripting Pete Excel Discussion (Misc queries) 2 January 9th 09 03:36 AM
Scripting Stefan Excel Discussion (Misc queries) 3 November 7th 08 10:54 AM
Scripting Question Becca Setting up and Configuration of Excel 2 September 22nd 05 12:33 AM
5.6 Scripting Jerry[_11_] Excel Programming 0 July 15th 03 11:55 PM


All times are GMT +1. The time now is 06:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"