I have the following VBA code (late binding):
Dim myList As Object
Set myList = CreateObject("System.Collections.SortedList")
which I want to replace with this (early binding):
Dim myList As New SortedList
Has anyone succeeded with this? I suppose that A reference must be enabled. But what is the name of that reference?
Probably* the easiest way is to add it on openning:
This adds the
mscorlib.dllto the references:And then:
From http://www.snb-vba.eu/VBA_Sortedlist_en.html
\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscorlib.tlbor in a comparable directory