Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88030

How to connect to IBM host on demand mainframe terminal from excel vba

$
0
0

I am trying to connect to open session of IBM Host on demand 3270 mainframe session.

I am trying to connect to the screen using VBA and send keystrokes and copy/paste from excel from the screen. I have the code below.

Public autECLSession As Object 
Public autECLPS As Object 
Public autECLOIA As Object 
Set autECLSession = CreateObject(""pcomm.auteclsession"") 
Set autECLPS = CreateObject(""Pcomm.auteclps"") 
Set autECLOIA = CreateObject(""Pcomm.autecloia"") 
autECLSession.SetConnectionByName (""A"") 
autECLSession.autECLPS.SetCursorPos lngRow, lngCol 
autECLSession.autECLPS.SendKeys ""\[eraseeof\]"" 
autECLSession.autECLPS.SendKeys strData, lngRow, lngCol

It gives me object reference error. Please help to see if there is any problem with the code.


Viewing all articles
Browse latest Browse all 88030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>