#include <ExcelCOM_UDF.au3> ; Include the collection
#include "array.au3"
Local $oExcel = _ExcelBookNew(1)
For $xx = 1 to 32
For $yy = 6 to 8
_ExcelWriteCell($oExcel, Random(22, 55), $yy, $xx)
;~ MsgBox(0,0,0)
Next
Next
$myarry=_excelreadarray($oExcel,7,1,32)
_ArrayDisplay($myarry)
_ExcelBookSaveAs($oExcel, @TempDir & "\temp.xls", "xls", 0, 1)
_ExcelBookClose($oExcel)