Set Statement

वेरिएबल या प्रॉपर्टी पर ऑब्जैक्ट रेफ़रेंस सेट करता है.

Syntax:


Set ObjectVar = Object

पैरामीटर

ObjectVar: a variable or a property that requires an object reference.

Object: Object that the variable or the property refers to.

Nothing - Assign the Nothing object to a variable to remove a previous assignment.

उदाहरण:


Sub ExampleSet
Dim oDoc As Object
    Set oDoc = ActiveWindow
    Print oDoc.Name
End Sub

Please support us!