Forum Discussion

Seabottom's avatar
Seabottom
Copper Contributor
Oct 29, 2023
Solved

Issue with comments/threaded comments/notes

I recently did something to my spreadsheet locally, and while it still opens fine, on the webversion it didn't. So I copy/pasted everything over to a new spreadsheet and it opens fine now. However,...
  • JKPieterse's avatar
    JKPieterse
    Oct 31, 2023

    Seabottom If you can somehow copy the Finances tab from the old to the new file, then this script will paste everything from the "old" Finances (2) tab to the new Finances tab:

     

     

    function main(workbook: ExcelScript.Workbook) {
      // Your code here
      let srcRng = workbook.getWorksheet("Finances (2)").getRange("A1:I168");
      let tgtRng = workbook.getWorksheet("Finances").getRange("A1:I168");
      tgtRng.copyFrom(srcRng,ExcelScript.RangeCopyType.all)
    }

     

     

    But the only way I was able to open the "Old" file was by using desktop Excel. Then it offered to do some repairs. After that I copied the sheet to the other file you attached an I copied the comments using the script above.

    I can't check whether the comments are intact. See attached.

     

Resources