是否可以从字典中提取第 n 个键及其在 VBA 中的值?就像是
For i = 1 To Counter + diccompare.Count - UBound(RecSource)
WS.Cells(Lastrow + i, "A") = diccompare.Keys(UBound(RecSource) - Counter + i)
Next
Run Code Online (Sandbox Code Playgroud)
我尝试为 Cell(Lastrow +i) 分配字典 diccompare(UBound(RecSource) - Counter + i) 中键的值