Selection. File(String, Object, Object, Object, Object) Insert
File(String, Object, Object, Object, Object)
Inserts all or part of the specified file.
public void InsertFile (string FileName, ref object Range, ref object ConfirmConversions, ref object Link, ref object Attachment);
Public Sub InsertFile (FileName As String, Optional ByRef Range As Object, Optional ByRef ConfirmConversions As Object, Optional ByRef Link As Object, Optional ByRef Attachment As Object)
Required String. The path and file name of the file to be inserted. If you don't specify a path, Microsoft Word assumes the file is in the current folder.
Optional Object. If the specified file is a Word document, this parameter refers to a bookmark. If the file is another type (for example, a Microsoft Excel worksheet), this parameter refers to a named range or a cell range (for example, R1C1:R3C4).
Optional Object. True to have Word prompt you to confirm conversion when inserting files in formats other than the Word Document format.
Optional Object. True to insert the file as an attachment to an e-mail message.