Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Link excel field to Acrobat files

I have a spreadsheet contains about 22,000 items (pictures information) .
One field (picture name field) of each item (row) has an AcrobatReader
Pictur in an other file. Can I link the values of this field to the PDF
files.

I want the user click on the picture name in the spreadsheet to open the
Acrobat file the have the same name in PDFs file.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default Link excel field to Acrobat files

You can highlight the data and 'Insert Hyperlink' to the file. This will
open when you click on it in Adobe Acrobat Reader.

If you have that many and they do not currently have the full path to the
folder but just the file name then this could be automated with some code
similar to below. (Select the data first and be prepared for a wait! Run in
test file first) It takes each cell and sets it as a hyperlink, in my case
to the path of C:\Images and the file name as shown in the selection. It
adds .pdf to the file name although this can be removed.

Sub SetHyperLinks()
Dim myCell As Range
Dim sFName As String
Const sPath = "C:\Images\"
For Each myCell In Selection
' Exclude & ".pdf" if extension in name
sFName = myCell.Value & ".pdf"
myCell.Hyperlinks.Add Anchor:=myCell, _
Address:=sPath & sFName, _
ScreenTip:="Open: " & sFName, _
TextToDisplay:=sFName
Next myCell
End Sub

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"sympatico" wrote in message
. ..
I have a spreadsheet contains about 22,000 items (pictures information) .
One field (picture name field) of each item (row) has an AcrobatReader
Pictur in an other file. Can I link the values of this field to the PDF
files.

I want the user click on the picture name in the spreadsheet to open the
Acrobat file the have the same name in PDFs file.

Thanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fail to link a pdf file in excel 2003 with Adobe Acrobat 7.0 Prof eva cheng Excel Discussion (Misc queries) 0 December 2nd 09 07:40 AM
Excel link to MS Project field TamiFrank Excel Discussion (Misc queries) 0 November 8th 06 11:03 PM
Excel date field link to Word Earl Excel Discussion (Misc queries) 1 July 13th 05 11:20 PM
how to re install Adobe Acrobat in Excel? The adobe Acrobat work. Execl error Excel Discussion (Misc queries) 1 March 17th 05 02:29 AM
How do link to a remote field but use the path from a stored field Michael T. Excel Discussion (Misc queries) 1 December 10th 04 12:18 AM


All times are GMT +1. The time now is 11:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"