expression.RemoveVBAReference( _ ByVal sessionPath As String _ )
where expression is a variable that represents a Terminal Object
Parameters
- sessionPath
- The fully qualified file name of the session document file to remove.
Removes a reference to a session document file from the VBA References settings. After you remove this file name, the macros in that file are no longer available in the current session. To make this change permanent, you'll need to save your session document file.
expression.RemoveVBAReference( _ ByVal sessionPath As String _ )
Sub AddAndRemoveVBAReference() Dim listOfSessionFiles() As String ThisTerminal.AddVBAReference ("\\myServer\shared\myDemoSession.rdox") listOfSessionFiles = ThisTerminal.GetVBAReferences() Debug.Print "After adding to list" For Each Item In listOfSessionFiles Debug.Print Item Next ThisTerminal.RemoveVBAReference ("\\myServer\shared\myDemoSession.rdox") listOfSessionFiles = ThisTerminal.GetVBAReferences() Debug.Print "After removing from list" For Each Item In listOfSessionFiles Debug.Print Item Next End Sub