Button to open JPG (Hyperlink)

G

Guest

Hi, I've created a button in the middle of a worksheet.
(Control toolbar -> Command button)

I now want it to open a hyperlink to a JPG file when clicked?

Thanks in advance
 
G

Gord Dibben

Sub getpic()
ActiveWorkbook.FollowHyperlink Address:="C:\yourpath\your.jpg", _
NewWindow:=True
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top