Hi mates.
I need the same thing that has been posted on this thread, but updated to Excel 2010:
http://excel.bigresource.com/Track/excel-a6YFd1sx/
The original code was:
Wich stopped working on Excel 2003 because Application.FileSearch isnt used anymore.![]()
Sub AddPicToCellComment() Dim r As Range, i As Range Set r = Range("G1") Set i = Range("A1") With Application.FileSearch .LookIn = ThisWorkbook.Path .Filename = "*.jpg" If .Execute > 0 Then 'there is a .jpg r = .FoundFiles(1) End If End With With i .ClearComments .addComment End With With i.Comment.Shape .Fill.UserPicture r .Width = 600 .Height = 400 End With End Sub
This link http://excel2007tips.blogspot.com/20...h-in-2007.html has been posted in the same topic as a solution, but i couldnt get it implemented.
Please, can you help me ?
Best regards
Bookmarks