When trying to create a named range for a formula that uses relative reference. In R1C1 notation, it would be R[1]C[1]. But any possibility I tried gave me an absolute path. Even if I did "=Sample!B1", I would see a "=Sample!$B$1" created. Is there a way to create a relative reference named range, without reverting to INDIRECT or INDEX strategy?
await Excel.run(async (context) => {
const sheet = context.workbook.worksheets.getItem("Sample");
sheet.names.add("RelativeCell", "=Sample!R[1]C[1]")
await context.sync();
});