VBA code to add hyperlink to Picture

iantowell

New Member
Joined
Jan 16, 2010
Messages
8
Hello,
I am using MS Excel 2007 and have inserted by vba code a picture to a cell location (for this forum I will use cell location J8).

I am trying now to add a hyperlink to this picture by using vba code also.

All attempts I have tried so far, puts the link in the cell, not on the picture!

I am wanting to hyperlink to the same workbook but a different sheet.

Can anyone assist?

Thanks

Ian
 
Are you saying that you have maybe a list of file paths in one column, and a corresponding list of file names in another column, and you want to loop through that 2-column list of (what would be) a concatenation of file path and name, and place those pictures on the spreadsheet somewhere? If you can provide some additional details about what you are working with regarding that range of cells you referred to, and where you want the (presumably) pictures placed, that will help determine how to go about this solution.
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Thank you for your reply, it has prompted me to realise that i should just list the hyperlink and the picture side by side, rather than trying to be too clever.

Thanks Mr Urtis.
 
Upvote 0

Forum statistics

Threads
1,215,410
Messages
6,124,755
Members
449,187
Latest member
hermansoa

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