hola...
Estoy intentando hacer una cosa así... (pero no consigo que cambie de pantalla)
'Para host on demand
tiempo = 100 'tiempo entre comandos
Dim Sys As Object, sesion As Object, pan As Object, Sys1 As Object, sesion1 As Object, pan1 As Object
Set Sys = CreateObject("HIOLE.System")
' oficinas *************************************************************************************************
Set sess = Sys.sessions.Item("IMS Produccion")
If (sess Is Nothing) Then
'If session not open then open it
Sys.sessions.Open ("IMS Produccion")
Set sess = Sys.activesession
End If
sess.FileTransferScheme = "C:\Archivos de programa\Attachmate\EXTRA!\Schemes\ESP\texto por omision.eis"
Set pan = sess.Screen
lngrow = 1
Do While (Cells(lngrow, 2) <> "")
pan.SendKeys ("<Tab><Tab><Tab><Tab><Tab><Tab><Tab><Tab><Tab><Tab><Tab>" + "A " + "<Enter>")
pan.WaitHostQuiet (tiempo)
pan.SendKeys ("<Tab><Tab><Tab><Tab><Tab><Tab><Tab><Tab><Tab><Tab><Tab>" + Trim(Cells(lngrow, 2)) + "<Enter>")
pan.WaitHostQuiet (tiempo)
pan.SendKeys ("c" + "<Enter>")
pan.WaitHostQuiet (tiempo)
lngrow = lngrow + 1
Loop