Google Sheets / Apps Script - Move Data Down with Dropdown

Publicado el: 17 julio 2024
en el 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


En esta página del sitio puede ver el video en línea Google Sheets / Apps Script - Move Data Down with Dropdown de Duración hora minuto segunda en buena calidad , que subió el usuario Spencer Farris 17 julio 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,023 veces y le gustó 15 a los espectadores. Disfruta viendo!