DocumentHost.SaveAs

Use this function to save the document as the specified file path.

Syntax Parameters Return value
Function DocumentHost.SaveAs( _
    Name As String, _
    Optional Overwrite As Variant = 0) As Boolean
  • Name [in]

    The path to save the Office file.

    Type: String

  • Overwrite [in, optional]

    Whether to overwrite the file if it already exists.

    Type: Variant

    Default value: 0

Boolean