Hi all,
I run a report that gives me a list of numbers in a column. ie BB101, BB102 etc
The numbers (BB101) also relate to a document in a folder on a server
I am looking for some ideas where through VBA, a macro takes the details from a cell, searches for the same numbered BB101.doc and opens the document once clicked.
I have it where I can set the link.
[vba]
If Range ("D9") = BB101 Then
Range ("D9").Select
ActiveSheet.Hyperlinks.Add Anchor:="This would be my server link"
End If[/vba]
But what I am looking for, is it to search the Documents Folder and once it has found the document, create a hyperlink to it from the cell.
The add anchor would be a link to a server but as I have less than 5 posts it would not pick it up.
I am thinking about a For Each, but I am new to VBA.
Any help is greatly appreciated.
Regards
K