Cmdlet
Move-OfficeNotebookCell
Moves a cell within a live notebook while keeping its identity and saved content.
Syntax
Move-OfficeNotebookCell
[-DestinationIndex] <Int32>
-Document <NotebookDocument>
[-Index] <Int32>
[-PassThru]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Move the third cell to the beginning.
$notebook | Move-OfficeNotebookCell -Index 2 -DestinationIndex 0Parameters
- -DestinationIndex Int32
- Zero-based final cell position.
- -Document NotebookDocument
- Live notebook containing the cell.
- -Index Int32
- Original zero-based cell position.
- -PassThru SwitchParameter
- Return the updated document.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.