pseudocode: IF [ cell data contains a newline or tab character ]; THEN [ add a quotation mark at the start and end of the cell value and add an extra quotation mark next to each quotation mark already in the cell value, when copying the data to the clipboard ].