emailgoogle-apps-scriptgoogle-sheetssharing

Sharing a sheet using script/macros in Google Sheets


I am just writing to ask if there's any way to share a Google Sheet worksheet with specific people using Google Apps Script Editor?

My ultimate goal is have it so the macro button share's the sheet with a set amount of addresses then emails them the shareable link, so they can see the sheet after receiving the email.

If there is a way, could you kindly explain/show me how? It would be greatly appreciated.


Solution

  • Not sure if this is what you're looking for, there's a Google Sheet add-on called Neo-Share, that allows you to share the sheet to specific people with the option of choosing between Editors and Viewers.

    If you want to do it yourself this section of the docs is what you're looking for.