Image Cells return as blank

时间:2017-04-06 16:45:26

标签: google-apps-script google-sheets

I have a cell with the formula

=image("https://www.google.com/images/srpr/logo3w.png", 4, 50, 100)

In my google script when I select the cell it says the cell is blank. Ideally I want to get the formula

var sheet = SpreadsheetApp.getActiveSheet();  
var range = sheet.getActiveRange();
Logger.log(range.isBlank())   #returns true

As I am looping through the range's formulas I would like to be able to do as follows

var formulas = range.getFormulas(); 
for (var i = 0; i < formulas[0].length; i++){
   for(var j = 0; j < formulas.length; j++){
     Logger.log(formulas[j][i]);

This code works with all other formulas I've tried

0 个答案:

没有答案