Excel VBA: nested dictionary issue
问题 I am not able to create a nested dictionary, assign it to a variable, overwrite one of the inner values, and then assign it to another variable without the original variable's value getting changed, which I do not want. For example, see the following code: Option Explicit Sub Button1_Click() Dim d_outer As Scripting.Dictionary Set d_outer = New Scripting.Dictionary Dim d_inner As Scripting.Dictionary Set d_inner = New Scripting.Dictionary Call d_inner.Add("key", "foo") Call d_outer.Add("first