Creating a hyperlink to a file .

ksarveshdureja

New Member
Joined
Dec 25, 2016
Messages
2
Hi all,


i want to create a hyperlink to all entries in Column to open a file with the name as in cell.
For Ex:-


NameLink1link2
JOHNJOHN.PDFJOHN.JPG
ROBINROBIN.PDFROBIN.JPG
JOYJOY.PDGJOY.JPG

<tbody>
</tbody>

and so on, I have appx 1000 such entries.
I want to open these files respectively via hyperlink. Also if i change the values in "NAME" column the the hyperlinks should also get change.

i want to provide a relative path to open files i.e :- ThisWorkbook.Path & "\FORMS\ROBIN.PDF.


Currently i am using :- =HYPERLINK("G:\FORMS"&C1&".pdf",C1&"") to open the file but i want to provide it a relative address so that i can open the files with removable drives as well.


Any help would be really grateful and helpful.

Regards
Sarvesh Dureja
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Just remove the drive name=HYPERLINK("FORMS"&C1&".pdf",C1&"") and use like this , example

if I have code.txt file in the same folder with the excel file, I will use =HYPERLINK("code.txt") or =HYPERLINK(A1)

Hi all,


i want to create a hyperlink to all entries in Column to open a file with the name as in cell.
For Ex:-


NameLink1link2
JOHNJOHN.PDFJOHN.JPG
ROBINROBIN.PDFROBIN.JPG
JOYJOY.PDGJOY.JPG

<tbody>
</tbody>

and so on, I have appx 1000 such entries.
I want to open these files respectively via hyperlink. Also if i change the values in "NAME" column the the hyperlinks should also get change.

i want to provide a relative path to open files i.e :- ThisWorkbook.Path & "\FORMS\ROBIN.PDF.


Currently i am using :- =HYPERLINK("G:\FORMS"&C1&".pdf",C1&"") to open the file but i want to provide it a relative address so that i can open the files with removable drives as well.


Any help would be really grateful and helpful.

Regards
Sarvesh Dureja
 
Upvote 0
Hi there

It worked, I was trying this since evening.Made my day!!!

Very Very Happy!!!!!!! :)

Really appreciate .

Merry X-Max & Happy New Year
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,393
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top