Bild in Excel einfügen, wenn nicht vorhanden
31.01.2018 14:32:05
Okan
ich würde gerne ein Bild per Makro in Excel einfügen. Dabei soll das Makro jedoch vorher prüfen, ob das Bild schon eingefügt ist.
Bis jetzt habe ich nur den teil geschafft, wo ein Bild, mit entsprechendem Rahmen, in Excel eingefügt wird.
Sub Bild()
Range("G7").Select
ActiveSheet.Pictures.Insert( _
"I:\Versuch_Okan\Bilder\" & Cells(1, 1).Value & ".JPG"). _
Select
Selection.ShapeRange.Reflection.Type = msoReflectionTypeNone
Selection.ShapeRange.Height = 226.7716535433
With Selection.ShapeRange.Line
.Visible = msoTrue
.ForeColor.ObjectThemeColor = msoThemeColorAccent1
.ForeColor.TintAndShade = 0
.ForeColor.Brightness = 0
End With
With Selection.ShapeRange.Line
.Visible = msoTrue
.ForeColor.ObjectThemeColor = msoThemeColorText1
.ForeColor.TintAndShade = 0
.ForeColor.Brightness = 0
.Transparency = 0
End With
With Selection.ShapeRange.Line
.Visible = msoTrue
.Weight = 3.5
End With
End Sub
Ich bedanke mich im Voraus.VG
Okan
Anzeige