AddFromFile Method

       

Adds or opens a project or group project.

Syntax

object.AddFromFile (ByVal pathname As String, [exclusive As Boolean]) As VBNewProjects

The AddFromFile method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
pathname Required. A string expression specifying the path to the file to use as the template.
exclusive Optional. Default = False. A Boolean expression. If set to True, then the existing group project is closed and the new project is created as the only open project.

Remarks

If the file is a group project file and exclusive is set to False, then all projects in that group project are added to the current group project. If the file is a group project file and exclusive is set to True, then the current group project is replaced by the specified one.