+ Reply to Thread
Results 1 to 3 of 3

Macro to create hyperlinks for multiple unique excel files in a given folder

  1. #1
    Registered User
    Join Date
    11-14-2018
    Location
    Belgrade, Serbia
    MS-Off Ver
    2007
    Posts
    1

    Macro to create hyperlinks for multiple unique excel files in a given folder

    Hello,

    There was this thread a few years ago, but the macro that is posted i.e. the url doesn't exist anymore, so I have to repeat this question. I have a list of 1400 files (in one column) and I need to hyperlink it with a files in a folder (for example u_10.pdf, u_11.pdf, u_12.pdf). It would take me a long time to hyperlink it manually, so is there a macro for it that works, and also do I need to put the worksheet in the same folder where are those files which I want to hyperlink?

    Thanks in advance,
    Nada

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

    Re: Macro to create hyperlinks for multiple unique excel files in a given folder

    Change the file Path to suit. The Workbook does not have to be in the same folder.

    Change the column A to the column where the file names are listed.

    Please Login or Register  to view this content.
    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 Contributor
    Join Date
    04-12-2013
    Location
    Usually at work, in the UK
    MS-Off Ver
    Excel 2010
    Posts
    639

    Re: Macro to create hyperlinks for multiple unique excel files in a given folder

    ="C:\file location\" & A1 & ".pdf"

    Do something like this in column B and run it down the length of column.
    then set a loop through column a using column b value

    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. Macro to create hyperlinks for multiple unique excel files in a given folder
    By coop442s in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-26-2019, 03:23 PM
  2. Replies: 7
    Last Post: 09-29-2014, 09:24 AM
  3. [SOLVED] Creating multiple hyperlinks to files in a folder - one file per hyperlink per cell
    By fsusd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2014, 12:17 PM
  4. Macro to Create "portable" Hyperlinks to Files in Current folder WITHOUT Drive letter?
    By whywhybother in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-02-2013, 12:51 PM
  5. How do i create multiple hyperlinks to various pdf files?
    By Mtlittleton in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-11-2013, 11:43 AM
  6. Macro to create a folder and then save all files in that folder
    By gokzee in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-27-2013, 01:49 PM
  7. Replies: 3
    Last Post: 09-30-2011, 04:35 AM

Tags for this Thread

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