mubashiraziz
Board Regular
- Joined
- Apr 2, 2009
- Messages
- 175
Hi to every one,
I am having a problem while hyperlinking bunch of files. I have a macro which takes the name of files from a directory and then copy in Excel Column and Hyperlink them.
But now I want to macro to check file names from Excel file Columns, search in the Directory and Hyperlink them. I can't use hyperlink() function because i have to submitted this bunch to client and they don't want to change the path.
Column A
[TABLE="width: 195"]
<colgroup><col></colgroup><tbody>[TR]
[TD]PROJ-13-BC-01-0601-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-01-0601-2.pdf
[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-04-0601-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-04-0602-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0601-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0601-2.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0601-3.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0602-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0603-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0604-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0605-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0606-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0607-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0608-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0609-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0610-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0610-2.pdf[/TD]
[/TR]
</tbody>[/TABLE]
pdf files are on below path
D:\Drawing
I want macro to compare file names from column A to Directory and then hyperlink.
I have tried by best to tell my problem and will wait for experts suggestion.
I have posted my problem on below forum as well:
https://www.excelforum.com/excel-programming-vba-macros/1207128-hyperlink-cell-values-to-pdf-file-in-a-directoy.html#post4776592[TABLE="width: 195"]
<tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am having a problem while hyperlinking bunch of files. I have a macro which takes the name of files from a directory and then copy in Excel Column and Hyperlink them.
But now I want to macro to check file names from Excel file Columns, search in the Directory and Hyperlink them. I can't use hyperlink() function because i have to submitted this bunch to client and they don't want to change the path.
Column A
[TABLE="width: 195"]
<colgroup><col></colgroup><tbody>[TR]
[TD]PROJ-13-BC-01-0601-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-01-0601-2.pdf
[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-04-0601-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-04-0602-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0601-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0601-2.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0601-3.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0602-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0603-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0604-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0605-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0606-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0607-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0608-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0609-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0610-1.pdf[/TD]
[/TR]
[TR]
[TD]PROJ-13-BC-08-0610-2.pdf[/TD]
[/TR]
</tbody>[/TABLE]
pdf files are on below path
D:\Drawing
I want macro to compare file names from column A to Directory and then hyperlink.
I have tried by best to tell my problem and will wait for experts suggestion.
I have posted my problem on below forum as well:
https://www.excelforum.com/excel-programming-vba-macros/1207128-hyperlink-cell-values-to-pdf-file-in-a-directoy.html#post4776592[TABLE="width: 195"]
<tbody>[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]