从VBA Excel中获取数组中的值
我build立了一个数组,当我添加它来观看
dict.Items
它返回
Expression Values dict.Items --dict.Items(0) "value in it" --dict.Items(1) "value in it" --dict.Items(2) "value in it"
但是当我尝试添加手表来expression
dict.Items(0)
它返回以下内容
Watch : : dict.keys(0) : <Property let procedure not defined and property get procedure did not return an object> : Variant/Empty : VBAProject.basMigration.UniqueReport
Items
方法不带索引 – 它只返回整个数组,所以你需要为Items()(0)
而不是Items(0)
添加一个Watch,