Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / IbmTerminal Object / GetVBAReferences Method
Example
In This Topic
    GetVBAReferences Method (IbmTerminal)
    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 IbmTerminal 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 = ThisIbmTerminal.GetVBAReferences()
        
        For Each Item In listOfSessionFiles
            Debug.Print Item
        Next
        
    End Sub
    See Also