InlineShapes.AddPicture Method (Word)
Adds a picture to a document. Returns an InlineShape object that represents the picture.
Syntax
expression .AddPicture(FileName, LinkToFile, SaveWithDocument, Range)
expression Required. A variable that represents an InlineShapes collection.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
FileName |
Required |
String |
The path and file name of the picture. |
LinkToFile |
Optional |
Variant |
True to link the picture to the file from which it was created. False to make the picture an independent copy of the file. The default value is False. |
SaveWithDocument |
Optional |
Variant |
True to save the linked picture with the document. The default value is False. |
Range |
Optional |
Variant |
The location where the picture will be placed in the text. If the range isn't collapsed, the picture replaces the range; otherwise, the picture is inserted. If this argument is omitted, the picture is placed automatically. |