Below is code I found on this site which is exactly what I want to do. But it\'s VBA, and I\'m using Google script. Can anyone translate it to Google for me? Thanks.