/docs/community?hl=en
This content is likely not relevant anymore. Try searching or browse recent questions.
-
Get Last updated user email on specific sheets and specifics row 0 Recommended Answers 1 Reply 0 Upvotes
1 Recommended Answer
$0 Recommended Answers
Hey guys, I need some help with my project right now.

So, I got a workbook with multiple sheets on it.
I need a script that update new date and time every time someone has edited on specific column on specific sheets
I am currently using this script and it works perfectly as i want it to be: 

function onEdit(e) {
    var sh = e.source.getActiveSheet();
    if (sh.getName() !== 'AA' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'BB' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'CC' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'DD' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'EE' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'FF' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'GG' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'HH' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'II' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'JJ' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3) 
    if (sh.getName() !== 'KK' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'LL' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3)
    if (sh.getName() !== 'MM' || e.range.columnStart < 5 || e.range.columnStart > 5 || e.range.rowStart < 3) return;
    sh.getRange(e.range.rowStart, 3).setValue(new Date())
}

​but now, I need to add one more sheets, let's say 'NN'.
on this new sheet. I need the sheet to automatically change the last updated time as the other sheet everytime someone edited it. AND add another feature, which is i need to know WHO has edited the row on 'NN ' sheet.
because this 'NN' sheet will be use by more than one user.

I am amateur on google script.. please help..
All Replies (1)
Hi Liandi Wijaya,
 
You may want to try the timestampMultipleColumns_ script.
 
I need the sheet to automatically change the last updated time as the other sheet everytime someone edited it.
 
I could not quite decipher that. Please describe what you need in a more concrete fashion, and share a sample spreadsheet.
 
AND add another feature, which is i need to know WHO has edited the row on 'NN ' sheet.
 
That can only be done if your organization is on a G Suite domain. It cannot be done if you are using @gmail.com addresses. See the insertActiveUserEmailAddressInColumn_ script.

Cheers --Hyde
 
marked this as an answer
This question is locked and replying has been disabled.
Discard post? You will lose what you have written so far.
Write a reply
10 characters required
Failed to attach file, click here to try again.
Discard post?
You will lose what you have written so far.
Personal information found

We found the following personal information in your message:

This information will be visible to anyone who visits or subscribes to notifications for this post. Are you sure you want to continue?

A problem occurred. Please try again.
Create Reply
Edit Reply
Delete post?
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.
Report abuse
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
Report post
What type of post are you reporting?
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
This reply is no longer available.
/docs/threads
//accounts.google.com/ServiceLogin
You'll receive email notifications for new posts at
Unable to delete question.
Unable to update vote.
Unable to update subscription.
You have been unsubscribed
Deleted
Unable to delete reply.
Removed from Answers
Marked as Recommended Answer
Removed recommendation
Undo
Unable to update reply.
Unable to update vote.
Thank you. Your response was recorded.
Unable to undo vote.
Thank you. This reply will now display in the answers section.
Link copied
Locked
Unlocked
Unable to lock
Unable to unlock
Pinned
Unpinned
Unable to pin
Unable to unpin
Marked
Unmarked
Unable to mark
Reported as off topic
/docs/profile/0?hl=en