First time writing on the forum after coming here often... So bear with me.
The code is attached to a Google sheet - operating out of google script V10.
The basic