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

Timestamps on Multiple Google Sheet Tabs [duplicate]

$
0
0

Can anyone help me how I can get a script that can run a timestamp for different tabs.
So each tab is going to be used by different users, I have 4 different users and sheets...each time the user ticks the check box in column three, i need a time stamp on column 1. I need this to happen to sheet 2, 3, 4 and 5.Is this possible?

My current script is as follows. I had it working for just one sheet but now I have added other sheets it is happening on all sheets and not when a specific column is changed.

function onEdit(e) {var row = e.range.getRow();var col = e.range.getColumn();if(col === 2 && row > 1 && e.source.getActiveSheet().getName() === "June 2021"){if(e.source.getActiveSheet().getRange(row,1).getValue() == "" ){e.source.getActiveSheet().getRange(row,1).setValue(new Date());}}}

Viewing all articles
Browse latest Browse all 9786

Trending Articles



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