InsertFile Method
This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.
Inserts code from a file into a code module.
object**.InsertFile(filename) As String**
The InsertFile syntax has these parts:
Part |
Description |
---|---|
object |
Required. An object expression that evaluates to an object in the Applies To list. |
filename |
Required. A String specifying the file containing the code to insert into the code module. |