+ Reply to Thread
Results 1 to 6 of 6

Automatic Hyperlink to .pdf file from a cell value

  1. #1
    Registered User
    Join Date
    02-21-2017
    Location
    Castelford
    MS-Off Ver
    2013
    Posts
    89

    Automatic Hyperlink to .pdf file from a cell value

    Hi All,

    is it possible to automatically hyperlink a cell to a .pdf automatically based on a diffferent cells value.

    EG.

    C4 = 1234
    N4 = 1234.pdf

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Automatic Hyperlink to .pdf file from a cell value

    Put this formula in N4. Change the file path to suit.

    =HYPERLINK("C:\MyFolder\" & C4 & ".pdf", C4 & ".pdf")
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Automatic Hyperlink to .pdf file from a cell value

    Yes - it's possible

    Are all the PDFs in the same folder?
    If not, then
    EITHER the cell value needs to include the full path
    OR
    you need a lookup table elsewhere with the cell value in column1 and the full path in column2

    Which will work for you?
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Registered User
    Join Date
    02-21-2017
    Location
    Castelford
    MS-Off Ver
    2013
    Posts
    89

    Re: Automatic Hyperlink to .pdf file from a cell value

    They are not all in the same folder but i have used the =HYPERLINK("C:\MyFolder\" & C4 & ".pdf", C4 & ".pdf") and this has worked a charm so thanks for your help!

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Automatic Hyperlink to .pdf file from a cell value

    You are welcome.
    Thanks for the reps and marking the thread as solved

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Automatic Hyperlink to .pdf file from a cell value

    You're welcome.

    You could put the folder path in say B4 and use this.

    =HYPERLINK(B4 & C4 & ".pdf", C4 & ".pdf")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Hyperlink a cell to a .msg file from a button
    By nathandavies9 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 03-01-2017, 09:50 AM
  2. [SOLVED] Auto hyperlink file from specific folder after enter file name in cell
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2014, 06:11 AM
  3. [SOLVED] Automatic E-mail - Use of hyperlink in cell to add attachment
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 04-10-2013, 11:11 AM
  4. automatic hyperlink of file list in excel
    By maheshwow in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-11-2012, 10:49 AM
  5. Hyperlink from file based on cell value
    By bencarey in forum Excel General
    Replies: 2
    Last Post: 10-31-2011, 02:48 PM
  6. Automatic Hyperlink to File Location/Path on Server
    By dforte in forum Excel General
    Replies: 6
    Last Post: 04-15-2011, 02:53 PM
  7. Replies: 11
    Last Post: 08-21-2009, 07:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1