标签: vba
(Excel)VBA是否区分:
Dim Ghadafi as Variant
和
Dim Ghadafi() as Variant
答案 0 :(得分:4)
第一种语法是 ONE 变体变量,而第二种语法是变体数组。
Ghadafi = 5.25
Redim Preserve Ghadafi(3) Ghadafi(1) 5.25 Ghadafi(2) = 6.10