Protect-SLWorksheet


Synopsis

Protect Worksheet.

Syntax

Description

Protect Worksheet. Settings disabled are as follows:
EditObjects
AutoFilter
DeleteColumns
DeleteRows
FormatCells
FormatColumns
FormatRows
InsertColumns
InsertRows
PivotTables
SelectLockedCells
SelectUnlockedCells
Sort
InsertHyperlinks
Currently disabling or enabling individual settings don&;39;t work as expected and hence they are not made available.

Parameters

-WorkBookInstance

Instance of an excel document that can be used for editing.

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

-WorksheetName

Name of the Worksheet that is to be processed.

Required? True
Position? 1
Default value  
Accept pipeline input? true (ByPropertyName)
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,SpreadsheetLight.SLDocument

Outputs

SpreadsheetLight.SLDocument

Notes

Examples

Example 1

Protect sheet2.

Related links