Table of contents
TOC
Collapse the table of content
Expand the table of content

Hyperlink.CreateNewDocument Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Creates a new Web presentation associated with the specified hyperlink.

Syntax

expression. CreateNewDocument( FileName, EditNow, Overwrite )

expression A variable that represents a Hyperlink object.

Parameters

NameRequired/OptionalData TypeDescription
FileNameRequiredStringThe path and file name of the document.
EditNowRequiredMsoTriStateDetermines whether the document is opened immediately in its associated editor.
OverwriteRequiredMsoTriStateDetermines whether any existing file of the same name in the same folder is overwritten.

Return Value

Nothing

Example

This example creates a new Web presentation to be associated with hyperlink one on slide one. The new presentation is called Brittany.ppt, and it overwrites any file of the same name in the HTMLPres folder. The new presentation document is loaded into Microsoft PowerPoint immediately for editing.

ActivePresentation.Slides(1).Hyperlinks(1).CreateNewDocument _ 
    FileName:="C:\HTMLPres\Brittany.ppt", _ 
    EditNow:=msoTrue, _ 
    Overwrite:=msoTrue

See also

Concepts

Hyperlink Object

© 2018 Microsoft