Sub AddAndRemoveVBAReference()
Dim listOfSessionFiles() As String
ThisIbmTerminal.AddVBAReference ("\\myServer\shared\sharedDemo.rd3x")
listOfSessionFiles = ThisIbmTerminal.GetVBAReferences()
Debug.Print "After adding to list"
For Each Item In listOfSessionFiles
Debug.Print Item
Next
ThisIbmTerminal.RemoveVBAReference ("\\myServer\shared\sharedDemo.rd3x")
listOfSessionFiles = ThisIbmTerminal.GetVBAReferences()
Debug.Print "After removing from list"
For Each Item In listOfSessionFiles
Debug.Print Item
Next
End Sub