View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Oligo Oligo is offline
external usenet poster
 
Posts: 27
Default VBA on vlookup picture.

hi according to the below link method, how can i use the picture again for
another cell range? and if both cell range input is same. how can i display
two same picture with my picture data?


http://www.mcgimpsey.com/excel/lookuppics.html


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