I'm using two Google sheets lets say sheet A (main data) and B.
Sheet B retrieve data from sheet A using importrange and query functions and data should refresh every day at 7:30 am. There is a problem in Google sheet that data is not refreshing continuously and some lags in between. If I create a trigger in App script of the main reference sheet A , like this:
function refreshA() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("A");
sheet.refresh();
}
function setupTriggers() {
ScriptApp.newTrigger("refreshA")
.timeBased()
.atHour(7)
.atMinute(30)
.everyDays(1)
.create();
}
Will this run if the page is not opened or not accessed. I mean will it run even if i didn't open Sheet A? Is there a difference if I used a built in Time driven trigger rather than an app script?
refresh()
method in the Sheet class. Make sure you are not asking an XY question.