Friday, August 31, 2012

How to set a trigger on a script in Google Spreadsheet

How to set a trigger on a script to execute a function at a particular event.


Question:


How to set a trigger on a script to execute a function at a particular event.



Solution:

To set the trigger you have to go to "Script editor" and there you have to click on the trigger icon below the "Publish" tool bar command. Have a look at the screenshot below:





Then click on "Add a new trigger", then in Run select "yourfunction" and in Events click on "Time-driven" and then select at whatever frequency you want to execute this trigger. Have a look at the screenshot below:



I hope this script would have solved your problems to set the trigger on spreadsheet that will execute on a specified event.


I hope the above solution will help you, and if you need more help then please do comment below on this blog itself I will try to help you out.

If this blog post was helpful to you, and if you think you want to help me too and make my this blog survive then please donate here: http://igoogledrive.blogspot.com/2012/09/donate.html 



Thanks,
Kishan,
iGoogleDrive

1 comment:


  1. How I can know which user modified the row?... My script only work for my user but not when other collaborator modify the spreadsheet and i want total modifier list for particular cell (Like: NAME , TIME and what message they changed before msg and after modifymsg)

    ReplyDelete