相关疑难解决方法(0)

将VBA中的类型设置为空?

我已经定义了一个具有自己类型的变量

Dim point As DataPoint

Public Type DataPoint
   list as Collection
   name as String
   number as Integer
End Type
Run Code Online (Sandbox Code Playgroud)

我想point一次删除变量的所有值.如果它是一个类,我会使用Set point = New DataPoint或设置Set point = Nothing,但如果它是一个类型我该怎么办?

variables vba object user-defined-types

20
推荐指数
3
解决办法
2万
查看次数

标签 统计

object ×1

user-defined-types ×1

variables ×1

vba ×1