Google Sheets / Apps Script - Move Data Down with Dropdown

Publicado em: 17 Julho 2024
no canal de: Spencer Farris
1,023
15

How to move data down to the last row with a dropdown selection

Sheet (make a copy from the File menu)
https://docs.google.com/spreadsheets/...

------
Script
function onEdit(e){
if (!e) throw "Do not run from Editor";

moveDataDown(e);
}

function moveDataDown(e){
const r = e.range;
if (r.rowStart == 1 || r.columnStart != 3) return;
const src = e.source.getActiveSheet();
r.offset(0,-2,1,3).moveTo(src.getRange(src.getLastRow()+1,1,1,3));
src.deleteRows(r.rowStart);
}

-----
I use AppsScript Color for the dark theme, OBS Studio to record, and a Blue Yeti microphone

Connect with me:
• spencer.farris@gmail.com
• spencerfarris.me
• www.linkedin.com/in/spencer-farris/
• Twitter/X @FarrisSpencer
• Google Product Expert support.google.com/docs/profile/12305

Donate on Paypal: spencer.farris@gmail.com


Nesta página do site você pode assistir ao vídeo on-line Google Sheets / Apps Script - Move Data Down with Dropdown duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Spencer Farris 17 Julho 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,023 vezes e gostou 15 espectadores. Boa visualização!