I have a script running that I found online that allows me to add a hyperlink to a range so it will take the value of cell, add it to a hyperlink and make the text show as the value itself. I currently target a specific range for this ("B14:B97")
What I want to do is instead of targeting a specific range, I want it to target Column B, Row 14 all the way down to the last row with data.
My current script:
function createUrl() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = SpreadsheetApp.getActive();
var range = sheet.getRange('B14:B97');
range.activate();
var selection = sheet.getSelection();
var currentCell = selection.getCurrentCell();
var activeRange = selection.getActiveRange();
var numRows = range.getNumRows();
for (var i = 1; i <= numRows; i++) {
var value = range.getCell(i,1).getValue();
range.getCell(i,1).setValue('=HYPERLINK("https://jira.com/browse/'+value+'","'+value+'")');
}
};