ExcelNooberino
New Member
- Joined
- Jan 2, 2019
- Messages
- 43
- Office Version
- 2016
- Platform
- Windows
Is there any way I can connect to a Host On Demand session with VBA?
What I mean by that is, I log on to my company's app on HOD (something like AS400 but it says IBM SuperSession) and then I enter what I believe to be the main screen of our environment. I know some of my colleagues can connect to it via a VBA function with just a simple object but they get it through a directory and since I'm running the app through HOD I can't do it in the same way:
And then:
It's something like this but it doesn't work for me. Any thoughts?
I'm sorry if I'm not being clear enough, but the main point is connecting just to the screen it shows and write some data out to an Excel sheet.
What I mean by that is, I log on to my company's app on HOD (something like AS400 but it says IBM SuperSession) and then I enter what I believe to be the main screen of our environment. I know some of my colleagues can connect to it via a VBA function with just a simple object but they get it through a directory and since I'm running the app through HOD I can't do it in the same way:
VBA Code:
Function mySession()
mySession = "D:\xx\HOST.edp"
And then:
VBA Code:
Dim objSession As Object
Set objSession = CreateObject(mySession())
It's something like this but it doesn't work for me. Any thoughts?
I'm sorry if I'm not being clear enough, but the main point is connecting just to the screen it shows and write some data out to an Excel sheet.
Last edited: