Translate a piece of code from VBA to JavaScript [for Google Sheets]

Printable View