Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8966751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:05:23+00:00 2026-06-15T17:05:23+00:00

How to attach an onChange method to a cell in google spreadsheet. I want

  • 0

How to attach an onChange method to a cell in google spreadsheet. I want to send an email to someone as soon a value in a cell becomes greater that 1000?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:05:24+00:00Added an answer on June 15, 2026 at 5:05 pm

    In this example the mail is sent if cell A1 has a value >1000 and if you didn’t change its value yourself.

    You should of course customize the email address and the cell name to your needs.

    function sheetTracker(){
        var ss = SpreadsheetApp.getActiveSpreadsheet();
        var cell = ss.getActiveCell().getA1Notation();
    
        if(Session.getActiveUser()!='yourmail@gmail.com' &&
           Number(ss.getActiveCell().getValue())>1000 && cell=='A1'){
            MailApp.sendEmail('yourmail@gmail.com', 'Modification in the spreadsheet', 
           'Cell ' + cell + ' has been modified by '+ Session.getActiveUser() +
           ' - new value = ' + ss.getActiveCell().getValue().toString());
        } 
    }
    

    You should add an installable trigger on edit (go to resource>current sheet triggers>add new trigger) and authorize the script.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Want to attach an Event Handler/Listener to some links using the delegate() method, but
I want to attach an xslt stylesheet to an XML document that I build
I Had a file upload control I want that file will attach only when
I'am building a _Widget and I want to attach an onchange event to an
I attach some files to the Email through the following method : if (rad_upload.UploadedFiles
I want to attach image with attributes for example i have manufacture attribute and
I'm trying to attach my database on a server that is running SQL2005 and
If I attach an image to an email, how can I place it in
I need to attach text labels to objects that are spread randomly across the
I attach to Outlook.Explorer.SelectionChange event. Event handler makes a call to an assembly that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.