Excel.run(function (context) {
var sheet = context.workbook.worksheets.getItem("Sample");
var range = sheet.getRange("B2:C5");
range.load("address");
return context.sync()
.then(function () {
console.log(`The address of the range B2:C5 is "${range.address}"`);
});
}).catch(errorHandlerFunction);
In the provided documentation, I have a good grasp on most of the code. However, there is one line that I find confusing.
.then(function ()
- I have already researched related keywords online.
- I have also referred to this (website)
- While I am familiar with VBA, I am still learning javascript.