I have this statement:
var destinationRange = destinationSheet.getRange("D26:E39");
and want to replace it with
var dest
You can use Template literals to accomplish this task:
const dValue = 26; const eValue = dValue + 13; const daGrowaRange = `D${dValue}:E${eValue}`; const destinationRange = destinationSheet.getRange(daGrowaRange);