Thank you Shamimarita for your response, however, When entering the script into Excel (Microsoft 365) Code Editer the following is returned.
function main(workbook: ExcelScript.Workbook) {
// Select the worksheet and range you want to print
let sheet = workbook.getWorksheet("Sheet1"); //...
Thank you Shamimarita for your quick response, however, I am looking for a Office Script to perform the action with a single button click. Just as you can assign a macro to a button on a Macro Enabled Workbook, I would like to stay away from a xlsm as our company frowns on these and is...
I have been struggling with a MS Office Script to Print a range of cells in excel to PDF without using VBA coding or Macro's.
I have previously written VBA Script to perform this operation by clicking on a button on the page, but would rather apply a non-macro solution.
Any help would be...