+ Reply to Thread
Results 1 to 11 of 11

Folder has X amount of jpeg files. How to automate creating links for those X amount of fi

  1. #1
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Question Folder has X amount of jpeg files. How to automate creating links for those X amount of fi

    I have a folder where I have between 45 and 90 photos saved. How can excel automatically create a hyperlink for every one of those photos in a different cell?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    Something like this would give you hyperlinks in column A. You would need to change the folderpath as appropriate

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    Yudlugar, thank you so much!!!! This is EXACTLY what I'm looking for.

    Qiuck minor question now... how do I rename the links so that the only wording that's on the link is the filename itself, instead of having the entire path show up as the link?

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    Try changing

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  5. #5
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    Thanks for the hint.

    It was actually TextToDisplay:=fil.Name

  6. #6
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    Another quick question...

    Since I create many folders with these pictures, is there a way where I can grab the file path from the worksheet cell instead of typing out the full path?

    I have excel create the paths of where the photos lie. Now if I can somehow just incorporate that cell as "the path" instead of writing out the full path, that would be awesome.

  7. #7
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    If you create a list of folderpaths on a hidden worksheet You can iterate through them changing the folder with each iteration ..

    instead of

    Please Login or Register  to view this content.
    You would have a line like :

    Please Login or Register  to view this content.
    Just one point about hyperlinks though -> They increase your workbook size exponentially..
    Last edited by AndyLitch; 05-14-2013 at 01:17 AM.

  8. #8
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    Quote Originally Posted by AndyLitch View Post
    If you create a list of folderpaths on a hidden worksheet You can iterate through them changing the folder with each iteration ..

    instead of

    Please Login or Register  to view this content.
    You would have a line like :

    Please Login or Register  to view this content.
    Just one point about hyperlinks though -> They increase your workbook size exponentially..
    Is there a way where I can assign the .getfolder be what's inside a specific cell instead of a Range of cells?

  9. #9
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    Quote Originally Posted by JPWRana View Post
    Thanks for the hint.

    It was actually TextToDisplay:=fil.Name
    I have been using this for a while now, but the file extension keeps on popping up on the link name.

    How do I create the links in a way that the link name will remove the file path?

    For example...

    Currently...
    112255E id.jpg
    3352354 est.jpg
    345X(1).avi

    How I want the link to show it as...
    112255E id
    3352354 est
    345X(1)

  10. #10
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Folder has X amount of jpeg files. How to automate creating links for those X amount o

    It worked! Flawlessly too!

    Now I wish I didn't have to go in the macro and manually change the folder path every time for each different project... but that's a different problem for a different forum thread I suppose.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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