Can I generate a file from Google Sheets script?

前端 未结 2 1589
一个人的身影
一个人的身影 2021-02-05 17:15

I\'m using Google Sheets to prototype a bunch of numerical data for something I\'m doing.

Is there a way to export a subset to a text file?

Effectively, what I\'

2条回答
  •  余生分开走
    2021-02-05 17:39

    If you have a Google Apps account, then you can use DocsList.createFile() to create the text file and save it in your documents list.

    Section 3 of this tutorial shows how to save the selected range of a spreadsheet as a file in your documents list in CSV format. It could be modified pretty easily to save in a different format.

提交回复
热议问题