jeffcoleky
Active Member
- Joined
- May 24, 2011
- Messages
- 274
I have this data, and a lot more just like it I need to hyperlink using a macro:
I need each line to link to the matching PDF on the local drive. The file names do NOT have spaces in them and they all end in .PDF. They're also all located in the same folder under c:\PDFS
The above filenames would then be respectively linked to these files via hyperlink:
Does anyone know how to automatically create these links?
Code:
[TABLE="width: 104"]
<tbody>[TR]
[TD]File[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134189[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134174[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134176[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134187[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134186[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134812[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134188[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134190[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134191[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134184[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134185[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134179[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134173[/TD]
[/TR]
[TR]
[TD="align: left"]DN 2012 134175[/TD]
[/TR]
</tbody>[/TABLE]
I need each line to link to the matching PDF on the local drive. The file names do NOT have spaces in them and they all end in .PDF. They're also all located in the same folder under c:\PDFS
The above filenames would then be respectively linked to these files via hyperlink:
Code:
C:\PDFS\DN2012134189.pdf
C:\PDFS\DN2012134174.pdf
C:\PDFS\DN2012134176.pdf
C:\PDFS\DN2012134187.pdf
C:\PDFS\DN2012134186.pdf
C:\PDFS\DN2012134812.pdf
C:\PDFS\DN2012134188.pdf
C:\PDFS\DN2012134190.pdf
C:\PDFS\DN2012134191.pdf
C:\PDFS\DN2012134184.pdf
C:\PDFS\DN2012134185.pdf
C:\PDFS\DN2012134179.pdf
C:\PDFS\DN2012134173.pdf
C:\PDFS\DN2012134175.pdf