+ Reply to Thread
Results 1 to 5 of 5

Mouseover image

  1. #1
    Registered User
    Join Date
    04-10-2015
    Location
    zaragoza
    MS-Off Ver
    2007
    Posts
    5

    Mouseover image

    Hi;

    I have a table with one column with the path of some images (B)

    I would like when I put the mouse over one cell of a column (A), that show the image of the path of the column B, but when I move the mouse from the cell close the image.

    Thanks in advance.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Mouseover image

    One way would be to define your own slicer style and apply that

    The OM does not appear to expose formatting properties directly
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-10-2015
    Location
    zaragoza
    MS-Off Ver
    2007
    Posts
    5

    Re: Mouseover image

    I prefer with Visual:

    I have one example but it only works for one excell.I would like to modify it to use for one complete column. If I put the mouse in A1 open the image of the path that it is in B1, the same for A2 and B2,.....

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If ActiveCell.Address = "$C$1" Then
    ActiveSheet.Pictures.Insert("C:\Documents and Settings\Administrator\My Documents\My Pictures\Sample.jpg").Select
    End If
    End Sub

    Could you help me?

    Thanks in advance

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: Mouseover image

    @IGORRR, my post should have gone to another thread about formatting slicers. Either the forum or me made a mistake.

    There is no mouse over event on the worksheet.

    Maybe you could use the comment to hold a picture, obvously loading all the pictures will bloat the workbook.
    http://www.contextures.com/xlcomments02.html#Picture

  5. #5
    Registered User
    Join Date
    04-10-2015
    Location
    zaragoza
    MS-Off Ver
    2007
    Posts
    5

    Re: Mouseover image

    Hi Andy:

    Is it possible covert that code in an mouseover and working through paths in columns?

    I prefer not to use the solution inserting comment.

    Thanks in advance.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Image on cell mouseover
    By garyw383 in forum Excel General
    Replies: 1
    Last Post: 11-21-2013, 02:33 PM
  2. Replies: 0
    Last Post: 10-11-2012, 04:18 AM
  3. MouseOver cell that makes apear and disappear an image
    By blakito in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2012, 12:57 PM
  4. MouseOver cell that makes apear and disappear an image
    By first_mo_za in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-20-2012, 03:37 AM
  5. Tooltip for mouseover of Image OLEObject (from Control Toolbar)
    By Matt Jensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2005, 10:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1