I am working on a script that will turn all file names in a directory into an array, and then writes this Array to an Excel file.
This in itself is working, but the RangeWrite function always puts the Array count in the first cell.
How can i make sure this does not happen? I can of course just filter it out in Excel, but i am trying to keep all logic of filtering text in my script.
This is what my script looks like:
Local $Yesterday = _DateAdd('d', -1, _NowCalcDate())
Local $cDate = StringReplace($Yesterday, "/", "-")
Local $aFileList = _FileListToArray(@WorkingDir & "/" & $cDate, "*")
Local $oExcel = _Excel_Open()
Local $oWorkbook = _Excel_BookNew($oExcel)
_Excel_RangeWrite($oWorkbook, $oWorkbook.Activesheet, $aFileList)