+ Reply to Thread
Results 1 to 5 of 5

Auto Hyperlinking to specific files in folder by name

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    Buffalo
    MS-Off Ver
    2010
    Posts
    12

    Post Auto Hyperlinking to specific files in folder by name

    I haven't been able to find anything on here so I apologize if this may have already been asked. I have an excel sheet where is cell A1 is the number 2000 and in cell A2 is the number 2001 and so on.....I then have a folder with a PDF named 2000......what formula do I enter so i can have it automatically hyperlink when I add a specific file to that folder by number? I don't know if what i am saying sounds correct but need some help!!

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Auto Hyperlinking to specific files in folder by name

    =HYPERLINK("D:\mails"&"\"&A1&".PDF","A1")
    Try this in B1 AND COPY TOWARDS DOWN
    Here "D:\mails" is file path and ".PDF" is file extension
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    10-20-2008
    Location
    USA
    Posts
    6

    Re: Auto Hyperlinking to specific files in folder by name

    In cell B1, you can enter the following formula...change the folder name to the directory of your files:

    =HYPERLINK(CONCATENATE("C:\FolderName\",A1,".pdf"),A1)

  4. #4
    Registered User
    Join Date
    05-29-2015
    Location
    Buffalo
    MS-Off Ver
    2010
    Posts
    12

    Re: Auto Hyperlinking to specific files in folder by name

    Thank you kkal117!! It worked!! Now here is one more question!! I see it automatically changed the color to blue like something was linked but some of them don't have a PDF. How can I change that in my spreadsheet so they don't change color UNLESS there is an actual file linked.

  5. #5
    Registered User
    Join Date
    10-20-2008
    Location
    USA
    Posts
    6

    Re: Auto Hyperlinking to specific files in folder by name

    Not sure how to code your request. However, the following code will retrieve the pdf file names in a specific directory into column A and add a hyperlink to the file. You'll have to replace the FolderName with the directory you want.

    Please Login or Register  to view this content.

+ 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. Replies: 1
    Last Post: 01-28-2019, 06:55 PM
  2. Extract specific column data from specific sheet from multiple files in a folder
    By piggyfox in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-31-2013, 11:51 AM
  3. Replies: 1
    Last Post: 01-24-2006, 11:35 AM
  4. Replies: 1
    Last Post: 01-24-2006, 11:00 AM
  5. Replies: 1
    Last Post: 01-24-2006, 12:25 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