mit folgendem Code kann ich per Druck auf einen Button ein Bild in mein Tabellenblatt mit der Beschriftung "Auswertung" einfügen. Allerdings wird das Bild immer beliebig irgendwo eingefügt. Wie ist es möglich, dass das Bild beim ersten Klick in Zelle J46 eingefügt wird, beim zweiten M46, beim dritten P46 usw.
Hier der Code:
Private Sub CommandButton3_Click()
Dim sPicture As String, pic As Picture
sPicture = Application.GetOpenFilename _
("Pictures (*.gif; *.jpg; *.bmp; *.tif), *.gif; *.jpg; *.bmp; *.tif", _
, "Select Picture to Import")
If sPicture = "False" Then Exit Sub
Set pic = Sheets("Auswertung").Pictures.Insert(sPicture)
With pic
.ShapeRange.LockAspectRatio = msoFalse
.Height = ActiveCell.Height
.Width = ActiveCell.Width
.Top = ActiveCell.Top
.Left = ActiveCell.Left
.Placement = xlMoveAndSize
End With
Set pic = Nothing
End Sub
Vielen Dank :)
Liebe Grüße,
Steph