#include <excel.au3>
#include <array.au3>
$oExcel = _Excel_Open()
$oWorkbook = _Excel_BookNew($oExcel)
Local $aDataArray[6][4] = [[1, 2, 3, 4], ['', 12, 13, 14], ['', 22, 23, 24], [31, 32, 33, 34], [41, 42, 43, 44], [51, 52, 53, 54]]
_Excel_RangeWrite($oWorkbook, $oWorkbook.Activesheet, $aDataArray)
With $oExcel
.ActiveSheet.Range(.Cells(1, 1), .Cells(4, 4)).Borders.Weight = 2
.ActiveWorkBook.Saved = True
EndWith
$oRange = $oWorkbook.Application.Sheets(1).Range('B6')
With $oRange
.Interior.ColorIndex = 36
.Font.Name = 'Tahoma'
.Font.Size = 14
.Font.ColorIndex = 3
.Font.Bold = True
.Font.Italic = True
.HorizontalAlignment = $xlCenter
.VerticalAlignment = $xlCenter
EndWith
Sleep(5000)
_Excel_Close($oExcel)