Maruthi
Maruthi

Reputation: 79

Attachmate Reflections from Excel VBA

I have been trying to automate Reflections from an Excel macro, code as below. However, there are 2 sessions open, i have attached screenshot of same for reference. Can anyone please help me how i can switch between the already running sessions. enter image description here

    Public objFM As Object
    Set objFM = GetObject("RIBM")  With objFM
      .WaitForEvent rcEnterPos, "30", "0", 4, 41
      .WaitForDisplayString "code:", "30", 4, 34
      .TransmitTerminalKey rcIBMResetKey
      .TransmitANSI "MTAE"
      .TransmitTerminalKey rcIBMEnterKey
      .WaitForEvent rcKbdEnabled, "30", "0", 1, 1
    End With

Upvotes: 0

Views: 2207

Answers (0)

Related Questions