MOVING2FLA
IS-IT--Management
Hi, I'm trying to pull numbers from an open Excel sheet (col A), Paste into an Extra (open session on correct screen), pull info back to Excel (col B), then loop to next row in column A. The first one works...but then it doesn't loop to next. Nothing is entered in Extra for next row. Here is my enter code...which I copied from here:
Sub ExcelExtraExcel()
Dim Excel As Object, ExcelWorkbook As Object
Set Excel = GetObject(, "Excel.Application")
Set System = CreateObject("EXTRA.System")
Set Sess = System.ActiveSession
Set MyScreen = Sess.Screen
With Excel.Worksheets("Sheet1")
Row = 1
Do
Pull = .Cells(Row, "A").Value '**This will pull information from Excel
MyScreen.Putstring Pull, X, X '**This will put information from Excel into Extra, use your own coordinates
MyScreen.SendKeys ("<Enter>")
MyScreen.WaitHostQuiet 100
NewPull = MyScreen.Getstring(X, X, 20) '**This will pull information from Extra, use your own coordinates
.Cells(Row, "B").Value = NewPull '**This will place information from Extra to Excel
Row = Row + 1 '**This will progress the code to the next line
Loop Until .Cells(Row, "A").Value <> "" '** This will loop your code until there is a blank value in Column A in Excel
End With
End Sub
Sub ExcelExtraExcel()
Dim Excel As Object, ExcelWorkbook As Object
Set Excel = GetObject(, "Excel.Application")
Set System = CreateObject("EXTRA.System")
Set Sess = System.ActiveSession
Set MyScreen = Sess.Screen
With Excel.Worksheets("Sheet1")
Row = 1
Do
Pull = .Cells(Row, "A").Value '**This will pull information from Excel
MyScreen.Putstring Pull, X, X '**This will put information from Excel into Extra, use your own coordinates
MyScreen.SendKeys ("<Enter>")
MyScreen.WaitHostQuiet 100
NewPull = MyScreen.Getstring(X, X, 20) '**This will pull information from Extra, use your own coordinates
.Cells(Row, "B").Value = NewPull '**This will place information from Extra to Excel
Row = Row + 1 '**This will progress the code to the next line
Loop Until .Cells(Row, "A").Value <> "" '** This will loop your code until there is a blank value in Column A in Excel
End With
End Sub