G
God Itself
Hi,
i use such a function to paste jpg file into wkrosheet:
Function ImpPicture(PicPath As String) As String
Dim sh As Shape
With Application.Caller
For Each sh In .Parent.Shapes
If sh.TopLeftCell.Address = .Address Then
sh.Delete
Exit For
End If
Next
ImpPicture = Dir(PicPath)
If ImpPicture <> "" Then
With .Parent.Shapes.AddPicture(Sciezka, True, True, .Left + 1, .Top +
1, .Width - 2, .Height - 2)
.Placement = xlMoveAndSize
End With
End If
End With
End Function
but i'd like also get width and height of pasted picture with another
function.
could anyone help with this?
rgs
i use such a function to paste jpg file into wkrosheet:
Function ImpPicture(PicPath As String) As String
Dim sh As Shape
With Application.Caller
For Each sh In .Parent.Shapes
If sh.TopLeftCell.Address = .Address Then
sh.Delete
Exit For
End If
Next
ImpPicture = Dir(PicPath)
If ImpPicture <> "" Then
With .Parent.Shapes.AddPicture(Sciezka, True, True, .Left + 1, .Top +
1, .Width - 2, .Height - 2)
.Placement = xlMoveAndSize
End With
End If
End With
End Function
but i'd like also get width and height of pasted picture with another
function.
could anyone help with this?
rgs