+ Reply to Thread
Results 1 to 7 of 7

Auto create Hyperlink to external file

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    34

    Auto create Hyperlink to external file

    Hi,
    not sure if this is possible. I want to automatically create a hyperlink in a cell where data is entered. In the attached sheet there are 2 columns, A with file numbers and B where a "Yes" can be typed if the file is present. What I want to do is enter a Yes, but have this automatically turn into a hyperlink using the file number in column A as part of the link to a .pdf of the same name.
    Appreciate any help.
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,758

    Re: Auto create Hyperlink to external file

    If you want to actually replace the Yes you will need to use VBA code. A simpler solution that may meet your needs is this formula starting in C2, then copy down:

    Please Login or Register  to view this content.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Auto create Hyperlink to external file

    Hi,
    yes, it would be the easy way to go alright, but unfortunatley I can only work with columns A and B because it is a controlled documnet and any additional columns are not allowed.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,758

    Re: Auto create Hyperlink to external file

    Here is a macro solution. boylers75=replace Yes with hyperlink when entered=Hyperlink.xlsm It assumes that the PDF file is in the same folder as this Excel file.

  5. #5
    Registered User
    Join Date
    10-02-2012
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Auto create Hyperlink to external file

    That waorks great, but the hyperlinkl need to work to a different folder, "\\TUGALW-FP02\DEPT\VE\Returned\". How does this get put into it, tried in vain

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,758

    Re: Auto create Hyperlink to external file

    What did you try? Try this modification, although I haven't tested it because the destination is a network drive:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-02-2012
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Auto create Hyperlink to external file

    Just realised I was referencing the wrong locatin which is why it was throwing up the error. Thanks again

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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