Solved

excel image in graphic file is displayed on worksheet: how to disable details of graphic's file path in tooltip info?

Posted on 2014-11-10
5
91 Views
Last Modified: 2014-11-11
- I import a graphic (eg .jpg) into a worksheet cell. It displays well.
- I point the cursor at the graphic; however...
- The directory path to the graphic file is displayed over the worksheet in a tooltip message.
- (eg: D:\aaThink_Build\Thk_Building\xlImages..)

How do I prevent this tooltip display?

Thanks
Kelvin4
0
Comment
Question by:Kelvin4
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 26

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 40433353
0
 

Author Comment

by:Kelvin4
ID: 40433442
Thanks, I downloaded the file: DisableHyerlinkTollTips2. but encountered this error: Module basMain:

Public Sub CreateDll(ByVal Dummy As Boolean)

    Dim Bytes() As Byte
    Dim lFileNum As Integer
    Dim aVar
    Dim x As Long
   
    aVar = ThisWorkbook.Worksheets("dllBytes").UsedRange.Value
     
    ReDim Bytes(LBound(aVar) To UBound(aVar))
    For x = LBound(aVar) To UBound(aVar)
        Bytes(x) = CByte(aVar(x, 1))
    Next
   
    lFileNum = FreeFile
    Open DLL_PATH_NAME For Binary As #lFileNum  '<<<<<<<<<<  Error Here
     Put #lFileNum, 1, Bytes
    Close lFileNum
   
    Call RegisterDll
   
End Sub

There seems little evidence that this offering works in the hands of others?

Any other comments on using this approach? 'Or other approaches?

Thanks again, Kelvin
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 40434541
Can you clarify exactly what steps you take to do this: "- I import a graphic (eg .jpg) into a worksheet cell."
0
 

Author Closing Comment

by:Kelvin4
ID: 40434883
I'm afraid I was not able to evaluate the code supplied at the LINK above, as it has a bug.

I decided to cut my loses and remove the hyperlink

Instead, I increased the space in the WS cell that contained the graphic image. This provided the cursor with enough access to the WS cell, so I could double click the cell and detect that Event via Workbook_SheetBeforeDoubleClick. Coupling that event signal upto the original target of my hyperlink was straightforward. That provided a pretty adequate user-experience.

Always glad to hear of better approaches..
Thanks,
Kelvin
0
 

Author Comment

by:Kelvin4
ID: 40435326
Rory: Thank you - but your message got to me just after I had closed out the Question.
            I've not used graphic icons in spreadsheets before, and ADVICE from a Savant would be prized.
           I am now posting a new question along the lines below.

Last 24 hr: I investigated a variety of procedures.  I realised that I need a clicked Icon to return the Row and column value of the cell it is located in. So I ABANDONED the Hyperlink solution (in the original question), and nor can I see how to get Row and column values from an icon with an assigned macro.

Hence MY FALL BACK SOLUTION is to make the xl cell within which the icon resides sufficiently WIDE for the user to double click part of the cell that is not occupied by Icon. This returns row and column values that will identify the file name and property type (fish etc), respectively. That is not likely to yield a good user-experience!

*** A solution that uses a hyperlink or macro assigned to the Icon would be preferred, provided I could interrogate the cell position of the Icon that was clicked. ***

I add icons to xl cells  via:
    With Range(Cells(rn.row + 1, 7), Cells(rn.row + 1, 1))
        ActiveSheet.Shapes.AddPicture "D:\aaThink_Build\Thk_Building\xlImages\Fish.jpg", msoCTrue, msoTrue, .left, .top, -1, -1
        ActiveSheet.Shapes(ActiveSheet.Shapes.Count).height = .height
    End With

Thanks,
Kelvin
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

632 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