Details
-
Bug
-
Resolution: Fixed
-
Medium
Description
Having the same file, one an xlsm and one a copy but an xlsx file.
The last cell in the xlsm file is not seen in the object row or in object cell.
However in the xlsx version of the same file, all cells in all row are seen.
with open(rtp_outFilePath, mode='wt', newline='', errors='replace' ) as fh: fhOutCSV = csv.writer(fh, quoting=K_Quoting, delimiter=K_DelimiterChar) for row in ws.rows: iRowCnt += 1 iCellCnt = 0 aOfCell = []; for cell in row: iCellCnt += 1 if(cell.value is None): sData = '' else: sData = str(cell.value) sData = re.sub(regX_Zapper,'?',sData) aOfCell.append(sData) fhOutCSV.writerow(aOfCell)