Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can I add a tooltip text to a .jpg image that has been positioned in an Excel worksheet cell via the AddPicture method?

Posted on 2014-12-14
2
Medium Priority
?
146 Views
Last Modified: 2014-12-15
I add a .jpg graphic (sh)    to an excel sheet (wsIF)   at cells.row (rw) , cells.column (cl)

within an outer loop...
      With wsIF.Cells(rw, cl)
               Set sh = wsIF.Shapes.AddPicture("D:\bla\myPic.jpg", msoCTrue, msoTrue, .Left, .Top + 1, -1, -1)
               wsIF.Shapes(wsIF.Shapes.Count).Height = .Height
               wsIF.Shapes(wsIF.Shapes.Count).OnAction = "Item_Files_Icons_onAction" 'drive a macro
      End With
                wsIF_dat.Cells(activeItemFile_rowNo_wsItemFile, 1) = sh.Name 'to data

Is there a way of adding a tooltip property to the .jpg, so when the user points the cursor at the .jpg, some advisory text appears? I do not wish to add a comment to the cell in which the graphic appears, because the cell should be approx the same size as the graphic.

Thanks
Kelvin4
0
Comment
Question by:Kelvin4
2 Comments
 
LVL 53

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 40499758
Hi,

you could maybe use a dummy Hyperlink

wsIF.Hyperlinks.Add Anchor:=wsIF.Shapes(wsIF.Shapes.Count), Address:="", ScreenTip:="blabla"

Regards
0
 

Author Closing Comment

by:Kelvin4
ID: 40500535
Yes! It worked first time.
Thanks for your rapid responses and real help in 2014!

Kelvin
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question