Picture

  • Thread starter Thread starter Rhgri
  • Start date Start date
R

Rhgri

I would like to only show a picture when you select a the cell next to it
 
1.Right click on the toolbar>from the popup select control box
2.Select image icon from the control box that appears on the screen an
draw it on the sheet1
3.Select the image box on the sheet>right click>properties
4.In the property dialog box>set visible=false and give pictur
location in picture=
5.Now open code window and paste following codes

Code
-------------------

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Row = 1 And Target.Column = 1 Then
Image1.Visible = True
End If
End Sub

-------------------

the picture will be display on selecting A1 of sheet1


Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top