Abdullah
02-20-2008, 02:53 PM
Hi guys,
I have the following line in a VBA Macro...
Set ish = cel.Range.InlineShapes.AddPicture(FileName:=pic.Path, LinkToFile:=False, SaveWithDocument:=True)
Where
Dim ish As InlineShape
The line adds a photo to the a cell in the table. I'm trying to make that photo a hyperlink to the actual photo file (since in the table's cell its only a thumbnail).
I tried changing LinkToFile:=True which didn't work
I also tried setting LinkToFile:=pic.path which also didn't work...it resulted in a Runtime error '4218'....type mismatch
is there an easy adjust to that line to make the thumbnail it inserts into a hyperlink to the actual file?
I know that pic.Name, pic.DateCreated, pic.Size are valid information, pic.path seems to be (it works in the first spot in the code)
I have the following line in a VBA Macro...
Set ish = cel.Range.InlineShapes.AddPicture(FileName:=pic.Path, LinkToFile:=False, SaveWithDocument:=True)
Where
Dim ish As InlineShape
The line adds a photo to the a cell in the table. I'm trying to make that photo a hyperlink to the actual photo file (since in the table's cell its only a thumbnail).
I tried changing LinkToFile:=True which didn't work
I also tried setting LinkToFile:=pic.path which also didn't work...it resulted in a Runtime error '4218'....type mismatch
is there an easy adjust to that line to make the thumbnail it inserts into a hyperlink to the actual file?
I know that pic.Name, pic.DateCreated, pic.Size are valid information, pic.path seems to be (it works in the first spot in the code)