I am working in Excel VBA (Excel 2013, x64) and trying to make a dictionary with arrays as keys. I currently have the following code, which I want to output "a,b" when called:
Sub DI()
Dim D As Object
Dim x As Variant
x = Array("a", "b")
'commenting out the line above and uncommenting the line below results in the output "a,b"
'x = "c"
Set D = CreateObject("scripting.dictionary")
D.Add x, "a,b"
Debug.Print D(x)
End Sub
Is there anything I can do to make this work?
Thanks!
String. No options there.