Google Sheets - Delete Rows in Bulk Using Checkboxes - Apps Script

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

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

  • @yuriyoryshchuk4203
    @yuriyoryshchuk4203 3 года назад +1

    The part about Macros is the best ;). It looks like a handy tool.

  • @lbcud9988
    @lbcud9988 3 года назад +1

    Too beautiful. God bless you!

  • @muhmmadalfateh9806
    @muhmmadalfateh9806 2 года назад +1

    thanks for this video ... if want to do the same but not with Checkboxes .. with color .. say if any cell in row is blue than Delete all row .. how i do it please .. thanks

  • @BustaCap
    @BustaCap 3 года назад +3

    Is there a way to move the row you checked to a separate sheet while also deleting it from the sheet you initially checked then also being able to check it on the new sheet you moved it to and sending it back to the original sheet?

    • @nztitirangi
      @nztitirangi 3 года назад +1

      maybe something like ws.copyTo(target_range) inserted above the ws.deleteRow line where target range is the sheet that stores the deleted values. Also be good to add a timestamp and logged in user name fields to the moved row.

    • @BustaCap
      @BustaCap 3 года назад

      @@nztitirangi I did attempt this but it didn’t function

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

    This really helped me! Thanks! God bless you!

  • @anthonyjayno2980
    @anthonyjayno2980 3 года назад +2

    Is it possible to send the deleted row to another sheet? Just like a history sheet to record the data

    • @12chachachannel
      @12chachachannel 10 месяцев назад

      developers.google.com/apps-script/reference/spreadsheet/range#movetotarget

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

    Hi, my check box is in column AO. How to apply this code. I tried to change the index to 40 but not working. The script work only for column A. Thanks

  • @TheTramos00
    @TheTramos00 3 года назад

    Hi, this can also be done with filter() method ?

  • @Николай-о7х3х
    @Николай-о7х3х 3 месяца назад

    thank you so much!!!!!

  • @alfistibrasiliani
    @alfistibrasiliani 3 года назад

    I just need to automatically delete all empty rows every time the sheet is opened...how can I do this?

  • @Jfresh55
    @Jfresh55 3 года назад

    Could you make a web app that can search/filter based on two columns of data? Maybe how to change the design to like add colors, table designs, logos, etc.

  • @ljohnso16
    @ljohnso16 3 года назад

    why not on edit pass the reference to the box being changed value, validate the data then use the same row refrence passed by on edit to hide the row

  • @rajeshr8887
    @rajeshr8887 3 года назад

    Interesting as always!! But did I see the time as 3.30AM? Boy no way I can record a video of this quality at that time of the day.

  • @HassanAlmaateeq
    @HassanAlmaateeq 3 года назад

    Fantastic as usual

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

    Great Tutorial 👍👍
    Is there a way to delete cells then automaticly shift up?

    • @12chachachannel
      @12chachachannel 10 месяцев назад

      developers.google.com/apps-script/reference/spreadsheet/range#deleteCells(Dimension)

  • @rahulsaikhedkar7248
    @rahulsaikhedkar7248 3 года назад

    Thanks it's helpful

  • @MegaHeatbreaker
    @MegaHeatbreaker 3 года назад

    SpreadsheetApp....why display color Red? Is
    SpreadsheetApp = spreadsheetApp ?

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

    I keep getting execution error when I run the console log for colAdata. The line error is on line 5 and says " TypeError: Cannot read property 'getRange' of null" Any help would be appreciated.

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

      check the previous time you set the variable before getRange
      variable = something
      variable.getRange()

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

    Thank you that`s really help!)

  • @tanveerhussain3881
    @tanveerhussain3881 3 года назад

    Best Nice Fantastic

  • @vhkhanhct
    @vhkhanhct 3 года назад

    Great!

  • @aaquibhasan8010
    @aaquibhasan8010 3 года назад

    how can we do copy row to archive tab and then delete from the data sheet can u show me a way.
    I cannot figure out as how to last row each time
    function myFunction() {
    const ss = SpreadsheetApp.getActiveSpreadsheet();
    const ws = ss.getSheetByName('VA05');
    const ts = ss.getSheetByName('Manufactured Items');
    const ColLdata = ws.getRange("BI:BI").getValues();
    for (i = 1; i < ColLdata.length-1; i++){

    if(ColLdata[i][0] === true ){
    const copyToItem = ws.getRange(i+1,1,1,60);
    copyToItem.copyTo()
    ws.deleteRow(i+1);


    }
    }
    };

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

    hello
    thanks for video
    is it possible to have the code
    thanks

  • @Puner54
    @Puner54 3 года назад

    Teacher...do you think I could ever be a Programmer!?!?

  • @Boppus
    @Boppus 3 года назад

    The code should run as soon as the box is checked.

    • @kyle943
      @kyle943 3 года назад +2

      Yeah I think this could be done as an onEdit function. Could make for some dynamic insert and delete row options. Maybe a future video!

    • @ksardari
      @ksardari 3 года назад

      @@kyle943 It's right, but cause of some reasons, I get a auth-warning!

    • @12chachachannel
      @12chachachannel 10 месяцев назад

      onEdit has to be an installed trigger in this case