FOR lnRow=1 TO thisform.clsXLSXReader.GetLastRowNumber() FOR lnCol=1 TO thisform.clsXLSXReader.GetMaxColumnNumber() lcCellValue = TRANSFORM(NVL(thisform.clsXLSXReader.GetCellValue(lnWB, lnSh, lnRow, lnCol), "")) && now write the cell value... ENDFOR ENDFORI used the NVL() function to not write a NULL value if a cell is not populated, but instead an empty value.