Hi Team,
I have two sheets as "Enquiry" and "Master" with owner as "Admin". In enquiry sheet, I protected few columns and shared across users. Users enter data in enquiry sheet and click on Add-on. The plugin will copy data to master sheet and enters some data in locked cells.
Add-on is throwing error because it is not able to edit locked cells. So I want the Add-on to run with Admin account rather than user account or any other way to achieve this solution.
Below is code used in add-on to copy data to master sheet.
Master_Sheet.getRange(Master_Sheet_lr + 2, 2, user_data_lr, user_data_lc).setValues(user_data);
Thank You very much in advance.
Regards,
Sai Krishna.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/bb8308dd-8b13-44b0-bc04-319560f335feo%40googlegroups.com.