I have a column in an Excel file, and in it I only have values ββsuch as "ReleaseDoc", but they are all hyperlinks to something like this:
\\server1\folder1\subFolderA\subFolderB\SubFolderC\RealseaseDoc.doc
Now, what I want to do is to have the file path extracted from the hyperlink in another column, and I did this with this macro function
Function HLink(rng As Range) As String If rng(1).Hyperlinks.Count Then HLink = rng.Hyperlinks(1).Address End Function
in each cell, I call this function with the corresponding cell, from where I want to extract the address
The problem is that what I get looks something like this:
../../../SubFolderB/SubFolderC/RealeasesDoc.doc
I do not see the full path to the documents, can anyone help with this vba function?
PS: I already looked through the messages and did not find anything like it
thanks
source share