onEdit Tricks: Old Value, Range Value, Logging | Google Apps Script

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024

Комментарии • 13

  • @KidSpiegel
    @KidSpiegel Год назад +1

    Nice video, thank you so much bro. Although I'm a beginner and I don't understand everything you say. I just don't want to copy all your code and use it, I want to understand it so I can use it on my own sheets.

    • @SheetsNinja
      @SheetsNinja  Год назад

      Awesome, keep it up, and you'll keep learning!

  • @GraemeStewart-k9w
    @GraemeStewart-k9w 2 месяца назад

    Thank you for the video. Is there a way to return the edited cells range with an onEdit(e) trigger when a filter is applied to the sheet?

    • @SheetsNinja
      @SheetsNinja  27 дней назад

      Unfortunately, there isn't any way to trigger a script when you are using the filter tool.

  • @pointclick9725
    @pointclick9725 11 месяцев назад

    Can you please help me make a google script onedit for old value, every time the column cell is edited will get the value of change cell. For example column A is price and column B is date. Everytime the price will change it well get the old value of the price and get the old value of date, and set the oldvalue to the other C previous price column D previous Date. Thank you in advance hope you can help me.

  • @ryanyee
    @ryanyee Год назад

    Thanks Sheets Ninja, I've been looking for a solution like this for a long time! Looking forward to trying it out.
    I couldn't find the "How to Authorize Script" tab. Could you please double check that it's in the sample data set?

    • @SheetsNinja
      @SheetsNinja  Год назад +1

      Yeah, for some reason it got deleted from there, I just added it, so if you redownload the sample, you will see it on there now.

    • @ryanyee
      @ryanyee Год назад

      @@SheetsNinja I ended up figuring it out from the info you provided. Thank you again legend!

  • @Jorge-fk3vb
    @Jorge-fk3vb Год назад

    Thank you Sheets Ninja! Is there a way to add a "Row Label" to this script? For example, I'd want the Edit Log to also have a column that shows me which customer (row label) was edited.

    • @SheetsNinja
      @SheetsNinja  Год назад

      so you already have the row and column reference in the onEdit object, so you can grab the row label, say it's in column A, like this:
      let rowLabel = sheet.getRange(row,1).getValue();
      And then you can just paste that value in with the rest of the data

  • @mohamed.montaser
    @mohamed.montaser 2 года назад

    can't access the sheet

    • @SheetsNinja
      @SheetsNinja  2 года назад

      I just reset the visibility, you can make a copy of it now.