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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 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!

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

  • @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 ปีที่แล้ว

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

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

  • @TheilonNeves
    @TheilonNeves 2 ปีที่แล้ว

    This really helped me! Thanks! God bless you!

  • @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х 5 หลายเดือนก่อน

    thank you so much!!!!!

  • @HassanAlmaateeq
    @HassanAlmaateeq 3 ปีที่แล้ว

    Fantastic as usual

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

  • @tanveerhussain3881
    @tanveerhussain3881 3 ปีที่แล้ว

    Best Nice Fantastic

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

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

  • @rahulsaikhedkar7248
    @rahulsaikhedkar7248 3 ปีที่แล้ว

    Thanks it's helpful

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

  • @tab_guru
    @tab_guru 2 ปีที่แล้ว

    Thank you that`s really help!)

  • @wibisetiawan4754
    @wibisetiawan4754 2 ปีที่แล้ว

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

    • @12chachachannel
      @12chachachannel ปีที่แล้ว

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

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


    }
    }
    };

  • @MegaHeatbreaker
    @MegaHeatbreaker 3 ปีที่แล้ว

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

  • @vhkhanhct
    @vhkhanhct 3 ปีที่แล้ว

    Great!

  • @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 ปีที่แล้ว

      onEdit has to be an installed trigger in this case