ich benötige mal Hilfe.
Ich habe ein Code gefunden der mir hilft ein Bild in eine Besten Zellenabschnitt einzufügen, aber nun kommt das Problem ich möchte das Bild in meheren Zellbereichen
zum Beispiel:
B1 bis C12
das gleiche Bild dann nochmal in
B22 bis D26
Ich hoffe ihr könnt mir helfen, anbei mal der Code
lg
Sub InsertPicture()
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 = ActiveSheet.Pictures.Insert(sPicture)
With pic
.ShapeRange.LockAspectRatio = msoFalse
.Height = Range("B8:B14").Height
.Width = Range("B8:B14").Width
.Top = Range("B8:B14").Top
.Left = Range("B8:B14").Left
.Placement = xlMoveAndSize
End With
Set pic = Nothing
End Sub