If ComboBox1.Value = 1 Then
Image1.Picture = LoadPicture("C:\aaa\-01.jpg")
End If
Dim u As Range
Set u = Worksheets("data_picture").Range("e1")
If ComboBox1.Text = 1 Then
Call ActiveSheet.Shapes.AddPicture("C:\aaa\-01.JPG", msoFalse, msoTrue, u.Left, u.Top, 200, 200)
Else
If ComboBox1.Text = 2 Then
Call ActiveSheet.Shapes.AddPicture("C:\aaa\-02.JPG", msoFalse, msoTrue, u.Left, u.Top, 200, 200)
End If
End If
Private Sub ComboBox1_Change()
Dim strImageLocation
strImageLocation = "C:\aaa\-" & Format(Val(ComboBox1.Text), 0) & ".jpg"
Image1.Picture = LoadPicture(strImageLocation)
Dim u As Range
Set u = Worksheets("data_picture").Range("e1")
Call ActiveSheet.Shapes.AddPicture(strImageLocation, msoFalse, msoTrue, u.Left, u.Top, 200, 200)