Mr Excel & excelisfun Trick 42: Lookup Picture In Excel Formula or VBA?
Uploader Comments (ExcelIsFun)
All Comments (62)
-
With a small change I FINALY got this to work for my self. It may be opperator error but I changed Bill's MR. EXCEL code to this and got it to work:
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$C$6" Then NewPic = "C:\aaa\pics\" & Range("c7").Value Target.Comment.Shape.Fill.User
Picture PictureFile:=NewPic End If End Sub
-
@Sherlock69Holmes , I am excelisfun, not Mr Excel. Mr Excel did the VBA. I am not so good with VBA. However, it should work in a workbook with the extension .xlsm
-
Hi , does this VBA worked , it worked for me exactly as shown . but when i closed it and opened again , picture does not change dynamically with the name.
what format does i need to save my file ?? please help
-
Mr Excel , Have Implemented the excel trick and it worked as shown . But when i close , got a pop-up to save as excel Macro enabled workbook . so i did save as Book.xlsm format.
when Opened , still i can see VB logic , all details , but picture does not change.
Please help me , do i need to take care of any other thing as part of trick.
-
Is the reason the second trick doesn't work in excel 2007 because you can't add a formula to the picture itself? I was doing this in excel 2010 for a while and only found out excel 2007 wouldn't do it when I tried to create a new sheet for a co-worker. I got stopped when trying to enter the formula into the picture. It wouldn't let me type anything in the formula bar with the pic selected. If I opened the 2010 version in 2007 it worked. I just couldn't create a new one from scratch.
hey Mr Excel.., am not getting words for how should i appreciate . Its awesome and thanks a ton for sharing these tricks. found these sessions , extremely helpful and customized as per my requirement and completed a small project on it .
Thanks Again Mr Excel
Sherlock69Holmes 2 months ago
@Sherlock69Holmes , you are welcome!
ExcelIsFun 2 months ago
I found a link to this by doing a google lookup using this as the lookup value: mrexcelexcelisfuntrick42 filetype:xls
larrym14 3 months ago
@larrym14 , that is amazing! However, I thought Google stopped supporting GoogleLookup as of nov 2011...
ExcelIsFun 3 months ago