mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-06 00:23:20 +00:00
17 lines
287 B
PowerShell
17 lines
287 B
PowerShell
param ($fibonacciDigits=10)
|
|
|
|
$file = "fib.xlsx"
|
|
rm "fib.xlsx" -ErrorAction Ignore
|
|
|
|
$(
|
|
New-PSItem 0
|
|
New-PSItem 1
|
|
|
|
(
|
|
2..$fibonacciDigits |
|
|
ForEach {
|
|
New-PSItem ('=a{0}+a{1}' -f ($_+1),$_)
|
|
}
|
|
)
|
|
) | Export-Excel $file -Show
|