D
documike
I used some code provided by another helpful soul and it works
great....except, it affects all the pictures on my sheet. I've built a tool
with several graphics on it but only want one set of pictures to work with
the VLOOKUP and leave the rest of them alone. Now all my "Pictures"
disappear except for the one cell where I set up the VLOOKUP. How can I
exclude some of the other graphic images?
Here's the code I'm using...Thanks
Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("P16")
For Each oPic In Me.Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Exit For
End If
Next oPic
End With
End Sub
great....except, it affects all the pictures on my sheet. I've built a tool
with several graphics on it but only want one set of pictures to work with
the VLOOKUP and leave the rest of them alone. Now all my "Pictures"
disappear except for the one cell where I set up the VLOOKUP. How can I
exclude some of the other graphic images?
Here's the code I'm using...Thanks
Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("P16")
For Each oPic In Me.Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Exit For
End If
Next oPic
End With
End Sub