Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Excel VBA 是否具有与向量等效的数据结构?
我仍在学习 Excel VBA,不喜欢ReDim Preserve语义。但如果这是唯一的方法,那就这样吧。
ReDim Preserve
那么 Excel VBA 2003 是否提供了动态列表类型的数据结构呢?
一个简单的顺序list数据类型是Collection. 此外,关联数组可通过CreateObject("Scripting.Dictionary").
list
Collection
CreateObject("Scripting.Dictionary")
Dim c As Collection Set c = New Collection c.Add 4