image pop ups

mark901

New Member
Joined
Aug 28, 2008
Messages
4
Is it possible to have an image pop up when i place my curser over a cell?

I have a list of nearly 1,000 dvds in a spreadsheet and have trouble remembering what they are and being able to see an image of the cover would help a great deal when trying to find a film to watch.

Thanks
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the board!! :)

With 1000 items this could be a fairly tedious task, however……<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
Copy and paste the image of each cover into the worksheet, with the image selected, change it’s name in the name box in the top left of the worksheet (the one that normally shows the current cell address). Probably easiest to name the image EXACTLY the same as the text that will be in the cell which denotes the movie.<o:p></o:p>
<o:p> </o:p>
This code will not show the image from hovering the mouse, but rather selecting the cell with the movie name in:<o:p></o:p>
<o:p> </o:p>
Rich (BB code):
<o:p></o:p>
Rich (BB code):
Rich (BB code):
Private Sub Worksheet_SelectionChange(ByVal Target As Range)<o:p></o:p>
Dim sp As Shape, sh As Worksheet<o:p></o:p>
Set sh = ActiveSheet<o:p></o:p>
For Each sp In sh.Shapes<o:p></o:p>
    If sp.Name = Target.Value Then<o:p></o:p>
        sp.Visible = msoCTrue<o:p></o:p>
        Else: sp.Visible = msoFalse<o:p></o:p>
    End If<o:p></o:p>
Next sp<o:p></o:p>
End Sub

<o:p> </o:p>
Try it with a couple first to see if it works!
 
Upvote 0
Lewiy seems to be offline.

Right click the sheet tab, select View Code and paste in the code. Then close the code window using the X.
 
Upvote 0
Thanks.

I've put the code in and the images have just vanished off the worksheet? :(
 
Last edited:
Upvote 0
VoG II

I have tried your suggested method and it works fine thanks :):):)

Is there a way to lock the images to the file so that if i move the worksheet and the image folder to another pc it will still find the images?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top