mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-28 14:13:35 +00:00
Added MoveSheets.ps1 example
This commit is contained in:
9
Examples/MoveSheets/MoveSheets.ps1
Normal file
9
Examples/MoveSheets/MoveSheets.ps1
Normal file
@@ -0,0 +1,9 @@
|
||||
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
|
||||
|
||||
$xlfile = "$env:TEMP\testThis.xlsx"
|
||||
Remove-Item $xlfile -ErrorAction Ignore
|
||||
|
||||
1..10 | Export-Excel $xlfile -WorkSheetname First
|
||||
11..20 | Export-Excel $xlfile -WorkSheetname Second -MoveToStart
|
||||
21..30 | Export-Excel $xlfile -WorkSheetname Third -MoveBefore First
|
||||
31..40 | Export-Excel $xlfile -WorkSheetname Fourth -MoveAfter Third -Show
|
||||
Reference in New Issue
Block a user