I'm newbie in Google Sheets/JavaScript. I have to port an VBA Excel application to google Sheets.
The Excel application contains a lot of formulas that use the values (> 2000 values) of on tab. In Excel, it imports all parameters at the beginning, and then it feeds to the formulas with an Global variable to avoid access to each formula call.
How can I read a big number array and store in one global variable in Google Sheets?
I'm googling and it seems that I have to use PropertiesService, but it doesn't work for me.
My code:
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var SS = spreadsheet.getSheetByName('Calibrated_Values')
var values = SS.getRange("A:A").getValues();
var scriptProperties = PropertiesService.getScriptProperties();
scriptProperties.setProperty('setnumber', range)
var GetProp= scriptProperties.getProperty('setnumber');
for (var i=0;i<10;i++) {
Logger.log('%d', GetProp));
}
Thanks