Tom,
Thanks for the help. This is the code I've come up with based on your example:
Sub HiddenSession_WORKSCHED()
Dim str_Get_String_From_Excel As String
Dim str_Get_String_From_Reflection As String
Dim obj_Excel_WorkBook As Excel.Workbook
Dim str_My_WorkBook_Path As String
str_My_WorkBook_Path = "C:\Documents and Settings\blah\blahblah\book2.xls"
Set obj_Excel_WorkBook = GetObject(str_My_WorkBook_Path)
str_Get_String_From_Excel = _
obj_Excel_WorkBook.Sheets("Sheet1").Cells(2, 1).Copy
Session.WaitForEvent rcEnterPos, "30", "0", 21, 13
Session.WaitForDisplayString "ITEMNO=>", "30", 21, 2
Session.Paste
Session.TransmitTerminalKey rcIBMEnterKey
At this point, the cell data is entered and transmitted resulting in a screen full of info. I can figure out the column coordinates.
I'm getting an object error at:
obj_Excel_WorkBook.Sheets("Sheet1").Cells(2, 2).Value = _
str_Get_String_From_Reflection
...the mainframe is down for the evening, so I'll have to wait til tomorrow to tweak the code.
Once I get this finished, is there a way to make this macro run for each item in column A?
Thank you again
