Visual Basic for Applications Reference

BuildPath Method

See Also    Example    Applies To    Specifics

Description

Appends a name to an existing path.

Syntax

object.BuildPath(path, name)

The BuildPath method syntax has these parts:

Part Description
object Required. Always the name of a FileSystemObject.
path Required. Existing path to which name is appended. Path can be absolute or relative and need not specify an existing folder.
name Required. Name being appended to the existing path.

Remarks

The BuildPath method inserts an additional path separator between the existing path and the name, only if necessary.