I have a Google sheet want to export as CSV file. But there are 2 columns in the sheet I don\'t want to export. For example, in the picturecolumn, I don\'t want to export co
How about this modification?
convertRangeToCsvFile_()
.
data
retrieved by getValues()
, it removes the columns "N" and "P".In order to reflect this, please modify as follows.
var data = activeRange.getValues();
var csvFile = undefined;
var data = activeRange.getValues();
data = data.map(function(e){return e.filter(function(_, i){return i != 13 && i != 15})}); // Added
var csvFile = undefined;
If I misunderstand your question, please tell me. I would like to modify it.