Excel - A Macro to display comment on mouse-over

Ask a question


Issue


I need a macro to display comments upon placing mouse cursor over a particular cell. How can this be implemented?

Solution


To be included in a macro:
With Range("A1")  
.AddComment  
.Comment.Shape.Fill.UserPicture "C:\folder\Name_of_Image.jpg"  
End With 

Thanks to michel_m for this tip on the forum.
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team