Set cell format to plain text with google apps script - Stack Overflow

PHOTO EMBED

Mon Apr 25 2022 03:25:52 GMT+0000 (Coordinated Universal Time)

Saved by @itsbrex

var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheets()[0];

// Single cell
var cell = sheet.getRange("B2");

// Plain text
cell.setNumberFormat("@");
content_copyCOPY

https://stackoverflow.com/questions/38490800/set-cell-format-with-google-apps-script