AddFromDirectory Method

See Also      Applies To

Adds ProjectItem objects and sets ProjectItems properties, recursively for each item in each folder, and returns a newly created ProjectItem object representing the FileName argument to this method.

Syntax

Sub AddFromDirectory (FileName As String) As ProjectItem

This syntax has these parts:

Part Description
FileName Required String. A full pathname identifying the initial folder containing items to be added.