AddFolders Method

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Description

Adds a new Folder to a Folders collection.

Syntax

object.Add folderName

The Add method has the following parts:

Part

Description

object

Required. Always the name of a Folders collection.

folderName

Required. The name of the new Folder being added.

Remarks

An error occurs if the folderName already exists.