Here is my VBA code:
I run this and the Putstring doesn't fire.
But if I manually run the VB6 macro by stepping in...everything runs just fine. Do i need to put some delays in the macro? is this a timing issue between Excel and Attachmate? The default timeout is set to 30000 and doesnt change because it is set so high
Code:
Sub set_settleTime()
xtraSettleTime = 3000
OldSystemTimeout = System.TimeoutValue
If xtraSettleTime > OldSystemTimeout Then
System.TimeoutValue = xtraSettleTime
End If
End Sub
Code:
...
call set_settleTime
...
With MyScn
.SendKeys (npa)
.SendKeys (nxx)
.SendKeys (line)
.SendKeys ("<Pf2>")
compName = .GetString(3, 2, 25)
.PutString "CPNI", 1, 6
.SendKeys ("<Pf3>")
.SendKeys ("<Pf3>")
End With
...
I run this and the Putstring doesn't fire.
But if I manually run the VB6 macro by stepping in...everything runs just fine. Do i need to put some delays in the macro? is this a timing issue between Excel and Attachmate? The default timeout is set to 30000 and doesnt change because it is set so high