Hello community,
I have a vba code which shows specific photo when you choose name from Data Validation list (car names, shows car photos)
But it shows only 1 photo , can anybody help me to make it 4 photo instead of 1?
Data Validation = OFFSET to image table
VBA:
I have a vba code which shows specific photo when you choose name from Data Validation list (car names, shows car photos)
But it shows only 1 photo , can anybody help me to make it 4 photo instead of 1?
Data Validation = OFFSET to image table
VBA:
Code:
Private Sub Worksheet_Calculate()
Dim oPic As Picture
Me.Pictures.Visible = False
With Range("j1")
For Each oPic In Me.Pictures
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
oPic.Height = 250
oPic.Width = 250
Exit For
End If
Next oPic
End With
End Sub~[/CODE