• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Create Hyperlinks

Hello Experts.

I have a folder in which we have team's files may be in thousands, so wanted to make my our team life simple for which i need have all the files existing in folder with hyperlinks so that navigation can be easier.

Thanking you in Advances.
Arpana...
 
Try this..Similar to your last question with Hyperlinks..

Code:
Sub Create_Hyperlink()
Dim objFSO As Object
Dim objFolder As Object
Dim objFile As Object
Dim i As Integer

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\Users\MONTY\Desktop\") 'Change path here
i = 1
For Each objFile In objFolder.Files
    Range(Cells(i + 1, 1), Cells(i + 1, 1)).Select
    ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
        objFile.Path, _
        TextToDisplay:=objFile.Name
    i = i + 1
Next objFile
End Sub





I just learnt forum rules if you have a similar questions can continue in the same thread...Please follow.
 
Monty

Works FANTASTIC!!!!!!!!!

Thanks for letting me know the rules which i will follow now.

Wanted a quick solution so created a new thread for my question though it is on similar lines, going forward will take care..
 
Am Happy that i could help you.

i was given feedback when am new to this forum to follow rules..So it happens no Worries chill.

@Monty
 
Back
Top