D
documike
Thanks to a tip from Dave Peterson, he directed me to a site that has
example code which I've included. There's also a link a the bottom of the
referenced page to download a sample worksheet however it doens't appear to
be working. (hangs)
Here's the reference: http://www.mcgimpsey.com/excel/lookuppics.html
Here's the code:
Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("F1")
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
My question is how do bring the graphics into the sheet, (insert, picture,
file & then assign a macro or ???)
I'm not understanding the oPic references etc.
Thanks
example code which I've included. There's also a link a the bottom of the
referenced page to download a sample worksheet however it doens't appear to
be working. (hangs)
Here's the reference: http://www.mcgimpsey.com/excel/lookuppics.html
Here's the code:
Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("F1")
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
My question is how do bring the graphics into the sheet, (insert, picture,
file & then assign a macro or ???)
I'm not understanding the oPic references etc.
Thanks