+ Reply to Thread
Results 1 to 7 of 7

Hyperlink to open pdf files

  1. #1
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116

    Hyperlink to open pdf files

    Hi everyone!

    Im hoping someone out there will be able to help me with a little problem I wish to solve please?

    I have a works sheet that has loads of part numbers listed in column B, Im hoping somehow that any part numbers added into this column inc existing ones will be able to be clicked and open up a corresponding pdf file ( all saved under the actual part number) and open it. Like the email links that I beleive can be created. Is this possible or am I going down the wrong route?
    Is 'Hyperlink' The right word even???

    Many Thanks for Looking

    Regards

    Denzil

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Hi,
    Try this:

    =HYPERLINK("C:\"&A1&".pdf","Click Here")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    Hi Dave

    Thanks for your quick reply!!

    Sorry for asking but breaking down that line of code what does it mean?

    Im Trying to learn a little, Bit of a novice!!

    And can I add that to every cell in column B so all part numbers added to it
    get the link aswell?

    Many Thanks

    Denzil

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Sweep's formula is building the hyperlink based on a part number stored in Column A. Change A! to B! if that is where the part number is & copy down
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Denzil,

    The =HYPERLINK() funtion creates a hyperlink with the following arguments:

    (hyperlink_address,Friendly_name)

    If you don't want to enter a friendly name, simply omit it.

    In the reply to your original post, I used "C:\"&A1&".pdf"

    The & concatenates text, so, using the above example if cell A1 contains HX85, clicking on the hyperlink will open the file C:\HX85.pdf

    I hope that's clear!

    Dave

  6. #6
    Forum Contributor
    Join Date
    03-25-2008
    MS-Off Ver
    Excel, Outlook, Word 2007/2003
    Posts
    245
    Why not using the doubleclick event to open up the files in column A ? No need for extra column for hyperlink address.

    Charlize

  7. #7
    Forum Contributor
    Join Date
    02-05-2008
    Posts
    116
    Thanks everybody for all your help!!!!!!!!!! that works great

    Could you explain more about this dooble click event please?

    Many Thanks in advance

    Denzil

+ 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. Excel files won't open:blank excel interface
    By moding blaine in forum Excel General
    Replies: 5
    Last Post: 07-29-2008, 05:02 PM
  2. Excel tries to open other files when first opening
    By Lea724 in forum Excel General
    Replies: 4
    Last Post: 07-10-2008, 05:43 PM
  3. Macro - Collect data - Select folder and loop through all xls files
    By kostas in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-04-2008, 05:58 AM
  4. Open Files
    By walid66 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2007, 03:01 AM
  5. Open Files Separately
    By smckie in forum Excel General
    Replies: 4
    Last Post: 03-14-2007, 03:05 PM

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