Sample Code:
Sub Main()
' Create the Excel objects
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = true
Set objWorkbook = objExcel.Workbooks.Add
nRow = 1
nCol = 1
For i = 1 to 4
objExcel.Cells(nRow, nCol).Value = FlexScreen.GetText (FlexScreen.Position(4, 2), 6)
objExcel.Cells(nRow, nCol+1).Value = FlexScreen.GetText (FlexScreen.Position(4, 10), 20)
objExcel.Cells(nRow, nCol+2).Value = FlexScreen.GetText (FlexScreen.Position(4, 31), 8)
objExcel.Cells(nRow+1, nCol).Value = FlexScreen.GetText (FlexScreen.Position(5, 2), 6)
objExcel.Cells(nRow+1, nCol+1).Value = FlexScreen.GetText (FlexScreen.Position(5, 10), 20)
objExcel.Cells(nRow+1, nCol+2).Value = FlexScreen.GetText (FlexScreen.Position(5, 31), 8)
objExcel.Cells(nRow+2, nCol).Value = FlexScreen.GetText (FlexScreen.Position(6, 2), 6)
objExcel.Cells(nRow+2, nCol+1).Value = FlexScreen.GetText (FlexScreen.Position(6, 10), 20)
objExcel.Cells(nRow+2, nCol+2).Value = FlexScreen.GetText (FlexScreen.Position(6, 31), 8)
objExcel.Cells(nRow+3, nCol).Value = FlexScreen.GetText (FlexScreen.Position(7, 2), 6)
objExcel.Cells(nRow+3, nCol+1).Value = FlexScreen.GetText (FlexScreen.Position(7, 10), 20)
objExcel.Cells(nRow+3, nCol+2).Value = FlexScreen.GetText (FlexScreen.Position(7, 31), 8)
Ok = FlexScreen.SendKeys(FlexKey.PF1)
Ok = FlexScreen.WaitForNoX()
nRow = nRow+4
Next
End Sub