How to use one code for multiple spreadsheets that can be updated, attempt to use Library

后端 未结 2 1121
臣服心动
臣服心动 2021-02-04 19:46

I have 200+ spreadsheet that our customers fill. I developed a script to manage the spreadsheets which is basically identical in function.

The problem is when I modify t

2条回答
  •  执笔经年
    2021-02-04 20:00

    I have not had much success using library myself.

    One solution I would suggest would be to use a standalone script. If the spreadsheets have identical features, you can run the script on all of them using a for loop.

    You can get an array of files inside a folder using using getFiles()

    // Logs the number of files in the 'kittens' folder
     var folder = DocsList.getFolder('kittens');
     var files = folder.getFiles();
     Logger.log(files.length);
    

提交回复
热议问题