Object variables
Variables with an object data type have their values assigned in a little different way, and they deserve special attention. Object variables are variables containing a reference to a certain object. This could be a project, a translation list etc. The object variable would have the same properties and methods as the object itself, and changing the variable affects the object. To assign an object to an object variable you need to use the Set statement. The following example illustrates the use of object variables. They are also used elsewhere in this document.
Sub ObjTest()
Dim trnlst As PslTransList
Set trnlst = PSL.ActiveTransList
trnlst.String(1).State(pslStateBookmark) = True
End Sub