Simply change the name of function to onChange(e) and assign spreadsheet trigger. Now your code will work with Glide.