I want to have a Scripting.Dictionary
as a member variable of a class.
I tried the following as suggested by Putting dictionaries into classes
But I get the impression that Mathieu's answer doesn't work for excel vba.
I put the following in a class module.
Option Explicit
Private dict As Scripting.Dictionary
Private Sub Class_Initialize()
Set dict = New Scripting.Dictionary
End Sub
I get the error "User defined type not defined" for dict.
What went wrong?
Thanks.