Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Input timestamp into last cell

$
0
0

I work on a script to input timestamp in the lastcell when all previus cells are modified. The following is not working.

function timestamp() {  var archivo =SpreadsheetApp.getActiveSpreadsheet();  var ss = archivo.getSheetByName("No Contact");  var activa = ss.getActiveCell();  var valor =activa.getValue();  var filaActiva = activa.getRow();  var colActiva =activa.getColumn();  var lastcell =ss.getLastColumn();  if(filaActiva>=2 && (colActiva>=2) && archivo.getActiveSheet()){    if(activa.getLastCell().getValue()){      }else{    lastcell.setValue(new Date()).setNumberFormat("MM/dd-HH:mm");    }  }}function onEdit(){  timestamp()}

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>