Display an image that is referenced by a hyperlink

stefanaalten

Board Regular
Joined
Feb 1, 2011
Messages
71
Office Version
  1. 365
Platform
  1. Windows
How can I display an image that is referenced in a different worksheet?

For example, sheet1!A1 contains a link to an image file, just a hyperlink to a local jpg. On sheet2, in some arbitrary cell, say B5, I would like to display the image that is referenced in sheet1!A1, i.e. sheet2!B5 shows the actual image that is referred to as a link in sheet1!A1.

Many thanks for any help!

PS This is a much cut-down version of my other question, posted on this forum, but the other question involves the entire problem I'm trying to solve, not just the image reference thing I'm asking for here so it's not a cross-post/double post! Thanks.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Code:
Sub Show_Image()
    With Sheet2
        .Range("B5").Select
        .Pictures.Insert Sheet1.Range("A1").Value
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top