=GetUrl(A2:A6)
function GetURL(input) {
var myFormula = SpreadsheetApp.getActiveRange().getFormula();
var myAddress = myFormula.replace(/=.*?\(/,'').replace(')','');
var myRange = SpreadsheetApp.getActiveSheet().getRange(myAddress);
var richTextValues = myRange.getRichTextValue().getRuns();
var urls = [];
for (var i = 0 ; i < richTextValues.length; i++) {
var url = richTextValues[i].getLinkUrl();
if (url) {
urls.push(url);
}
}
return [urls];
};
Feel Free To Write Mehedi Hasan
Get In Touch
Drop me a line, or give me a heads up if you have a plan for your Online Business! Simply write to me or find me in google. Also can contact with me on all popular social meadia by @mehedi_everyday . I'd love to hear from you! My inbox is always open! 😎
0 comments:
Post a Comment