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:-


[TABLE="width: 200"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Link1[/TD]
[TD]link2[/TD]
[/TR]
[TR]
[TD]JOHN[/TD]
[TD]JOHN.PDF[/TD]
[TD]JOHN.JPG[/TD]
[/TR]
[TR]
[TD]ROBIN[/TD]
[TD]ROBIN.PDF[/TD]
[TD]ROBIN.JPG[/TD]
[/TR]
[TR]
[TD]JOY[/TD]
[TD]JOY.PDG[/TD]
[TD]JOY.JPG[/TD]
[/TR]
</tbody>[/TABLE]

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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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:-


[TABLE="width: 200"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Link1[/TD]
[TD]link2[/TD]
[/TR]
[TR]
[TD]JOHN[/TD]
[TD]JOHN.PDF[/TD]
[TD]JOHN.JPG[/TD]
[/TR]
[TR]
[TD]ROBIN[/TD]
[TD]ROBIN.PDF[/TD]
[TD]ROBIN.JPG[/TD]
[/TR]
[TR]
[TD]JOY[/TD]
[TD]JOY.PDG[/TD]
[TD]JOY.JPG[/TD]
[/TR]
</tbody>[/TABLE]

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,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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