+ Reply to Thread
Results 1 to 12 of 12

Hyperlink Multiple Images At Once?

  1. #1
    Registered User
    Join Date
    02-14-2009
    Location
    chilliwack, bc
    MS-Off Ver
    Excel 2000
    Posts
    4

    Hyperlink Multiple Images At Once?

    Hi all,

    I am completely stumped with this problem and not sure where to begin.

    I have about 20,000 hyperlinks in my excel sheet that I would like to assign to individual images.

    For example, how do I link an image in cell A2, using a hyperlink from cell B2?

    I know that if I wanted to simply hyperlink text, I would use =HYPERLINK(B2,"text"), but this reference won't work for images.

    I also know I can right click on the image and insert a hyperlink that way, but this obviously isn't practical because I am working with over 20,000 links.

    Any help would be appreciated with figuring out this monster of a task, thank you in advance!
    Last edited by vegas12; 02-16-2009 at 12:32 AM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Hyperlink Multiple Images At Once?

    Do the shape numbers correlate in any way with the row numbers? If so, it should be possible to create a macro loop using a construct similar to ..

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Hyperlink Multiple Images At Once?

    where are the images? are they in the workbook?

  4. #4
    Registered User
    Join Date
    02-14-2009
    Location
    chilliwack, bc
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: Hyperlink Multiple Images At Once?

    Yes, the images are in the worksheet next to the link I want to associate them with and the picture numbers correlate with the row numbers.

    mrice, thank you for the macro but would you mind explaining how I implement it? I tried just copy and pasting it into a new module in VBA and trying to run the macro but that didn't work. lol, forgive me as I'm a newbie when it comes to macros.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Hyperlink Multiple Images At Once?

    so the links are going to where? some url? some other place in workbook?
    sorry im having trouble visualising it
    got an example of a couple?

  6. #6
    Registered User
    Join Date
    02-14-2009
    Location
    chilliwack, bc
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: Hyperlink Multiple Images At Once?

    The links are going to websites. I want to have my images link to websites that are defined in another column.

    Basically I want to use the =HYPERLINK(linklocation,"friendlytext") formula but instead of using "friendlytext" I want to use images.

    Please see the attached excel file.
    I was able to make it work with this sample because I right clicked on the image and inserted a hyperlink that way, but I obviously can't do that for 20,000 images.
    Attached Files Attached Files

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Hyperlink Multiple Images At Once?

    Hello vegas12,

    Do want hyperlinks in column "A" or only the friendly text? Does not make much sense to have hyperlinks in one column and pictures with the same hyperlinks in the adjacent column.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Hyperlink Multiple Images At Once?

    If you want to add the cell contents in col A to the images in col B as hyperlinks,
    Please Login or Register  to view this content.
    Last edited by shg; 02-15-2009 at 02:44 PM.
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Registered User
    Join Date
    02-14-2009
    Location
    chilliwack, bc
    MS-Off Ver
    Excel 2000
    Posts
    4

    Re: Hyperlink Multiple Images At Once?

    shg, that macro is exactly what I needed to complete the task! Thank you to you, and everyone else that helped out, and sorry if it seemed a little confusing to explain. I'm now able to complete my project!

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Hyperlink Multiple Images At Once?

    You’re welcome. Would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

  11. #11
    Registered User
    Join Date
    11-08-2021
    Location
    KSA
    MS-Off Ver
    Office 365
    Posts
    1

    Re: Hyperlink Multiple Images At Once?

    Hi All,

    I have the same issue as "vegas12" with one extra request, where I have to send the hyperlinked images using Mail Merge to all those who are in the list, i.e. each person should receive the assigned image for him and the image should contain the hyperlink assigned for him. any thoughts?

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Hyperlink Multiple Images At Once?

    Quote Originally Posted by mah.saleh83 View Post
    Hi All,

    I have the same issue as "vegas12" with one extra request, where I have to send the hyperlinked images using Mail Merge to all those who are in the list, i.e. each person should receive the assigned image for him and the image should contain the hyperlink assigned for him. any thoughts?
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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