Rediger

Del via


InsertFile method

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.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.