Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Terminal Object / GetVBAReferences Method
Example
In This Topic
GetVBAReferences Method (Terminal)
In This Topic
Retrieves a list of the session documents referenced by the current session from the VBA References settings. The macros in these session documents are available to the current session.
Syntax
expression.GetVBAReferences() As String()
where expression is a variable that represents a Terminal Object

Return Value

A string array that contains the referenced session file names.
Example
This sample gets a list of the session documents referenced by the current session.
Sub GetListOfVBAReferences()
    
    Dim listOfSessionFiles() As String
     
    listOfSessionFiles = ThisTerminal.GetVBAReferences()
 
    For Each Item In listOfSessionFiles
        Debug.Print Item
    Next
    
   
End Sub
See Also