I am new to the Advanced Formula Environment. I have created the one testing function using Advanced Formula Environment. I want to get that formula name using office JS. I have tried the following code but I failed to get the formula name.
async function getFormulas() {
try {
await Excel.run(async (context) => {
const sheet = context.workbook;
sheet.load("formulas");
await context.sync();
console.log(JSON.stringify(sheet.formulas, null, 4));
});
}
catch (error) {
console.log(error)
}
}
Can anyone guide me on How to get the formula name which is created by Advanced formula environment?


