可打印版本       提交     
请单击以进行评分并提供反馈
MSDN
MSDN Library

  开启低带宽视图

We were unable to locate this content in zh-cn.

Here is the same content in en-us.

Office Excel 2003 VBA Language Reference
AddPicture Method [Excel 2003 VBA Language Reference]

Creates a picture from an existing file. Returns a Shape object that represents the new picture.

expression.AddPicture(FileName, LinkToFile, SaveWithDocument, Left, Top, Width, Height)

expression Required. An expression that returns one of the objects in the Applies To list.

FileName  Required String. The file from which the OLE object is to be created.

Left  Required Single. The position (in points) of the upper-left corner of the picture relative to the upper-left corner of the document.

Top  Required Single. The position (in points) of the upper-left corner of the picture relative to the top of the document.

Width  Required Single. The width of the picture, in points.

Height  Required Single. The height of the picture, in points.

Example

This example adds a picture created from the file Music.bmp to myDocument. The inserted picture is linked to the file from which it was created and is saved with myDocument.

Set myDocument = Worksheets(1)
myDocument.Shapes.AddPicture _
    "c:\microsoft office\clipart\music.bmp", _
    True, True, 100, 100, 70, 70
		




Applies to | Shapes Collection


© 2009 Microsoft Corporation 版权所有。 保留所有权利  |  商标  |  隐私权声明
Page view tracker