How to resize the entire rows of all google sheets to 21 Height ( I have approx. 10 Sheets) and i have been trying with below code but its not working.
I have below code which resize the rows according to the string but does not resize it to the Height 21.
function resizeAllrows () {
var sheet = SpreadsheetApp.getActiveSheet();
var dataRange = sheet.getDataRange();
var firstrow = dataRange.getRow();
var lastrow = dataRange.getLastrow();
sheet.autoResizeRows(firstrow, lastrow);
}
Please have a look on below picture where above code does not work. Your help will be highly appreciated.
Don't have option for advance google services.
