The following code snippet I have is a function that accepts a rectangular matrix of strings and a path to write an xls file. It puts the contents of the matrix into the cells of the Excel sheet, and applies some formatting based on the contents:The following code snippet I have is a function