This is my apps script function which is essentially trying to reverse sheets' FORMULATEXT
:
function textFormula(formula) {
var sheet = SpreadsheetApp.getActiveSheet();
var cell = sheet.getActiveCell();
cell.setFormula(formula);
}
This is how I'm calling it in a cell in Sheets:
And this is the error I'm getting:
From what I gathered, I should be able to use my custom function to affect the calling cell? Idk, lost.