Remove-SLDefinedName


Synopsis

Remove defined names contained in an excel document.

Syntax

Description

Remove defined names contained in an excel document.

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

-DefinedName

The defined name that has to be removed.

Required? True
Position? 1
Default value  
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? False

-RemoveAll

Will remove all defined names from a workbook.Use with caution!

Required? True
Position? 1
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,SpreadsheetLight.SLDocument

Outputs

SpreadsheetLight.SLDocument

Notes

Examples

Example 1

Remove the definedname &;39;dfname2&;39; from &;39;myfirstdoc&;39;.

Example 2

Remove all defined names in workbook &;39;myfirstdoc&;39;.

Related links