Creates a picture from an existing file.
'Declaration
Function AddPictureToCell( _
ByVal As String, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Integer, _
ByVal column As Integer, _
Optional ByVal As Double, _
Optional ByVal As Double _
) As IShape
'Usage
Dim instance As IShapes
Dim fileName As String
Dim linkToFile As Boolean
Dim saveWithDocument As Boolean
Dim row As Integer
Dim column As Integer
Dim width As Double
Dim height As Double
Dim value As IShape
value = instance.AddPictureToCell(fileName, linkToFile, saveWithDocument, row, column, width, height)
Parameters
- fileName
- The file from which the picture is to be created.
- linkToFile
- The file to link to.
- saveWithDocument
- To save the picture with the document.
- row
- The row index of the upper-left corner of the shape's bounding box.
- column
- The column index of the upper-left corner of the shape's bounding box.
- width
- The width of the picture, in pixels.
- height
- The height of the picture, in pixels.
Return Value
The new picture.