Save-SLDocument


Synopsis

Saves an instance of an excel document.

Syntax

Description

Saves an instance of an excel document.
2 parametersets included. You can either save changes to an existing document or save to a new path.

Parameters

-WorkBookInstance

Name of Excel Document to be saved.

Required? True
Position? 0
Default value  
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-WhatIf

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Confirm

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Path

Path where the excel document is to be saved. You have to specify the complete path along with the file extension.

Required? True
Position? 1
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Force

Use this to Overwrite an existing file at the path mentioned in the path parameter.

Required? False
Position? 2
Default value  
Accept pipeline input? false
Accept wildcard characters? False

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

String

Outputs

No Output

Notes

Examples

Example 1

Saves the excel document MyFirstDoc.

Example 2

Save the document MyFirstDoc as MyFirstDoc-Duplicate .

Example 3

Here we use the force switch to overwrite the existing file &;39;MyFirstDoc-Duplicate&;39; which we created in the previous example.

Related links