I have the following declaration in a function in VBA:
Set dict = CreateObject("Scripting.Dictionary")
When I try to return dict using the code GetDates = dict
I get an error. Can someone help please?
Thanks!
I have the following declaration in a function in VBA:
Set dict = CreateObject("Scripting.Dictionary")
When I try to return dict using the code GetDates = dict
I get an error. Can someone help please?
Thanks!
Set GetDates = dict
You have to use Set.