LibreOffice 6.2 帮助
为变量或属性设置对象引用。
Set ObjectVar = Object
「ObjectVar」: 需要引用对象的变量或属性。
「Object」: 变量或属性引用的对象。
「Nothing - 将 Nothing」对象指定给某个变量以取消先前的指定。
Sub ExampleSet
Dim oDoc As Object
Set oDoc = ActiveWindow
Print oDoc.Name
End Sub