CreateNewDocument Method

         Example         Applies To

Creates a new Web presentation associated with the specified hyperlink.

Syntax

expression.CreateNewDocument(FileName, EditNow, Overwrite)

expression   Required. An expression that returns a Hyperlink object.

FileName   Required String. The path and file name of the document.

EditNow   Required Boolean. True if you want to open the document immediately in its associated editor to modify it. False if you do not want to open the document immediately. The default value is True.

Overwrite   Required Boolean. True if you want to overwrite any existing file of the same name in the same folder. False if you want to preserve any existing file of the same name in the same folder, requiring a new file name to be specified in the FileName argument. The default value is False.