Reading local excel files with appscript

1,178 views
Skip to first unread message

Tommy Cheng

unread,
Apr 19, 2021, 3:48:57 PM4/19/21
to Google Apps Script Community

Is there a way for google appscript to access local files? If not, why isn't this possible?


My end goal is an app script that can:
1. Read a local excel file
2. Select certain cells from the excel file
3. Copy them into a google sheet.

The hardest part I'm struggling with is reading a local file. I do not want to have to upload every excel file because I download 10s of them a day.

Alan Wells

unread,
Apr 19, 2021, 4:01:39 PM4/19/21
to Google Apps Script Community
There's no way for Apps Script to access local files for security reasons.
At the very least, you'd need to open up something with HTML (sidebar, dialog, Web App) , and choose the files to get from your local drive.

Gert Dekker

unread,
Apr 19, 2021, 5:30:58 PM4/19/21
to Google Apps Script Community
By using "Backup and Sync" from Google local files are automatically copied to Drive.
Using Apps script the Excel files can then be converted to Google sheet format and you can process the file.

Op maandag 19 april 2021 om 22:01:39 UTC+2 schreef aj.a...@gmail.com:
Reply all
Reply to author
Forward
0 new messages