Learn Excel – VBA Picture Comments: Podcast #1386

April 19, 2011 at 2:38 pm

One of the old tricks in Microsoft Excel is adding a pop-up picture to a cell. I showed this a long time ago on an episode of TechTV. The VBA code that I used back in Excel 2003 to add the pop-up pictures is no longer working in Excel 2010. Today, with Episode #1386, Bill shows us how to update the code for use in Microsoft Excel 2010. You will find an example of the modified code below.


Sub AddPictureToComments1()
' Bill Jelen
    For Each cell In Range("F3:F5")
        cell.Comment.Text Text:=""
        cell.Comment.Visible = True
        Selection.ShapeRange.Fill.UserPicture "C:\aaa\" & cell.Value & ".jpg"
        cell.Comment.Visible = False
End Sub

"Learn Excel 97-2007 from MrExcel" by Bill Jelen…This blog is the video podcast companion to the book, Learn Excel 97-2007 from MrExcel. Download a new two minute video every workday to learn one of the 377 tips from the book!

"Microsoft Excel 2010: In Depth" by Bill JelenFor more Excel 2010 knowledge, check out “Excel 2010 In Depth“, by Bill Jelen a.k.a. MrExcel.

“The Learn Excel from MrExcel Podcast Series”

MrExcel.com — Your One Stop for Excel Tips and Solutions.


Entry filed under: Excel 2010, Excel 2010 In Depth, Learn Excel from MrExcel, MrExcel Products, VBA and Macros. Tags: , , , , , , , , , , , , , , , , .

Learn Excel – UDF in a Personal Macro Workbook? Podcast #1385 Learn Excel – It’s 6 O’clock Somewhere: Podcast #1387

Learn Excel from MrExcel

Learn Excel Podcast Splash Screen

The Excel Beginners Book:

"Don't Fear The Spreadsheet" - by Tyler Nash, Bill Jelen, Tom Urtis and Kevin Jones

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 742 other followers

Live Lessons Excel 2010 DVD

"Live Lessons Excel 2010" DVD

RSS MrExcel Recent Articles

  • An error has occurred; the feed is probably down. Try again later.

Recent MrExcel Tweets

MrExcel Podcast Archive

%d bloggers like this: