Share via


Hyperlink.CreateNewDocument Method

Creates a new document linked to the specified hyperlink.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub CreateNewDocument ( _
    Filename As String, _
    EditNow As Boolean, _
    Overwrite As Boolean _
)
'Usage
Dim instance As Hyperlink
Dim Filename As String
Dim EditNow As Boolean
Dim Overwrite As Boolean

instance.CreateNewDocument(Filename, _
    EditNow, Overwrite)
void CreateNewDocument(
    string Filename,
    bool EditNow,
    bool Overwrite
)

Parameters

  • Filename
    Type: System.String

    Required String. The file name of the specified document.

  • EditNow
    Type: System.Boolean

    Required Boolean. True to have the specified document open immediately in its associated editing environment. The default value is True.

  • Overwrite
    Type: System.Boolean

    Required Boolean. True to overwrite any existing file of the same name in the same folder. False if any existing file of the same name is preserved and the Filename argument specifies a new file name. The default value is False.

See Also

Reference

Hyperlink Interface

Hyperlink Members

Microsoft.Office.Interop.Excel Namespace