LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old April 17th 17, 05:40 PM posted to microsoft.public.excel.programming
external usenet poster
First recorded activity by ExcelBanter: Nov 2007
Posts: 15
Default Help with adding hyperlinks to images


I have a code to add hundreds of pictures to a sheet. It works perfectly! Now I need to modify it to add a hyperlink to each picture and I cannot get it to work. Any help is appreciated! The hyperlink is the same link that contains the picture, in this script is the variable FILENAME

Line_dest = n - 1
Filename = Sheets("LISTOFLINKS").Cells(n, 15).Value
Rows(Line_dest).RowHeight = 100
Set shp = Selection.ShapeRange.Item(1)
With shp
.LockAspectRatio = msoTrue
.Width = 180
If .Height 95 Then .Height = 95
End With
Selection.Hyperlinks.Add Anchor:=Selection.ShapeRange.Item(1), Address:=Filename


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding pictures, images or objects darkside7out Excel Discussion (Misc queries) 1 March 10th 10 02:05 AM
Adding images to cells via VB.Net Cartoper Excel Programming 1 May 22nd 08 01:21 PM
How do I extract and save hyperlinks from images in excel Robert in Brisbane Excel Discussion (Misc queries) 4 December 29th 06 01:55 PM
Adding Images NickHK Excel Programming 1 December 22nd 06 11:20 AM
Adding Images Tom Ogilvy Excel Programming 0 December 22nd 06 02:24 AM

All times are GMT +1. The time now is 04:21 PM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 ExcelBanter.
The comments are property of their posters.

About Us

"It's about Microsoft Excel"


Copyright © 2017