I'm adding hyperlinks to my google sheet that are copied throughout the worksheet. I have a table of contents with sheet names in A2:A and would like to write a google app script to write the specific sheet URL to the corresponding cell in B2:B. The hyperlinks throughout my workbook reference the TOC based on a vlookup and function correctly as long as the correct URL is held in B2:B.
I use the workbook as a template that is copied as new projects are developed. The links should change every time the workbook is copied.