Hi All
I have a problem. I'm trying to move the picture to the back as is pasted into the sheet because I have some text that needs to be in the front of the photo. Is this something you could help me with?
Thank you
Sub Insert_Photo()
Dim strFile As String
Dim rng As Range
Dim sh
Const cFile As String = "Image Files(*.bmp; *.jpg; *.jepg; *.png; *.tif),"
strFile = Application.GetOpenFilename(filefilter:=cFile, Title:=Ts)
If strFile = "False" Then
Else
Set rng = ActiveSheet.Range("d40").MergeArea
With rng
Set sh = ActiveSheet.Shapes.AddPicture(Filename:=strFile, LinkToFile:=msoFalse, SaveWithDocument:=msoTrue, Left:=.Left, Top:=.Top, Width:=.Width, Height:=.Height)
sh.LockAspectRatio = msoFalse
End With
Set sh = Nothing
Set rng = Nothing
End If
End Sub
I have a problem. I'm trying to move the picture to the back as is pasted into the sheet because I have some text that needs to be in the front of the photo. Is this something you could help me with?
Thank you
Sub Insert_Photo()
Dim strFile As String
Dim rng As Range
Dim sh
Const cFile As String = "Image Files(*.bmp; *.jpg; *.jepg; *.png; *.tif),"
strFile = Application.GetOpenFilename(filefilter:=cFile, Title:=Ts)
If strFile = "False" Then
Else
Set rng = ActiveSheet.Range("d40").MergeArea
With rng
Set sh = ActiveSheet.Shapes.AddPicture(Filename:=strFile, LinkToFile:=msoFalse, SaveWithDocument:=msoTrue, Left:=.Left, Top:=.Top, Width:=.Width, Height:=.Height)
sh.LockAspectRatio = msoFalse
End With
Set sh = Nothing
Set rng = Nothing
End If
End Sub