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

Поділитися
Вставка
  • Опубліковано 21 лют 2021
  • How to delete rows by checked check-boxes in Google Sheets using Apps Script.
    #googleworkspace #delete #rows

КОМЕНТАРІ • 38

  • @lbcud9988
    @lbcud9988 3 роки тому +1

    Too beautiful. God bless you!

  • @jamesemmanuelcagang5907
    @jamesemmanuelcagang5907 2 роки тому

    very much helped me. thank you.

  • @yuriyoryshchuk4203
    @yuriyoryshchuk4203 3 роки тому +1

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

  • @rahulsaikhedkar7248
    @rahulsaikhedkar7248 3 роки тому

    Thanks it's helpful

  • @TheilonNeves
    @TheilonNeves 2 роки тому

    This really helped me! Thanks! God bless you!

  • @vhkhanhct
    @vhkhanhct 3 роки тому

    Great!

  • @tanveerhussain3881
    @tanveerhussain3881 3 роки тому

    Best Nice Fantastic

  • @user-pj4oh6mx9d
    @user-pj4oh6mx9d 11 днів тому

    thank you so much!!!!!

  • @HassanAlmaateeq
    @HassanAlmaateeq 3 роки тому

    Fantastic as usual

  • @jfresh2054
    @jfresh2054 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.

  • @this_is_data
    @this_is_data 2 роки тому

    Thank you that`s really help!)

  • @TheTramos00
    @TheTramos00 3 роки тому

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

  • @muhmmadalfateh9806
    @muhmmadalfateh9806 Рік тому +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

  • @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

  • @wibisetiawan4754
    @wibisetiawan4754 2 роки тому

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

    • @12chachachannel
      @12chachachannel 7 місяців тому

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

  • @BustaCap
    @BustaCap 3 роки тому +2

    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

  • @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.

  • @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

  • @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 7 місяців тому

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

  • @alfistibrasiliani
    @alfistibrasiliani 2 роки тому

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

  • @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

  • @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()

  • @MegaHeatbreaker
    @MegaHeatbreaker 3 роки тому

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

  • @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 7 місяців тому

      onEdit has to be an installed trigger in this case