Currently I am using this on a new added column to extract the hyperlink. How do I add code that will not enter any value (leaving it just blank) if there is no URL. Actually what I needed was when importing in PowerBI, those URL or hyperlink excel spreadsheet does not display the hyperlink after importing the data to PowerBI. I believe there is no way to do this but I thought PowerBI was powerful enough to detect this hyperlink in the spreadsheet.
Function CopyURL(HyperlinkCell As Range)
CopyURL = HyperlinkCell.Hyperlinks(1).Address
End Function