mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-06 02:24:04 +00:00
Added try/catch. Expanded aliases
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
. ..\New-PSItem.ps1
|
||||
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
|
||||
|
||||
rm *.xlsx
|
||||
|
||||
#. ..\New-PSItem.ps1
|
||||
|
||||
Remove-Item *.xlsx
|
||||
|
||||
$(
|
||||
New-PSItem 12001 Nails 37 3.99 =C2*D2 (echo ID Product Quantity Price Total)
|
||||
New-PSItem 12002 Hammer 5 12.10 =C3*D3
|
||||
New-PSItem 12003 Saw 12 15.37 =C4*D4
|
||||
New-PSItem 12010 Drill 20 8 =C5*D5
|
||||
New-PSItem 12011 Crowbar 7 23.48 =C6*D6
|
||||
New-PSItem 12011 Crowbar 7 23.48 =C6*D6
|
||||
) | Export-Excel functions.xlsx -AutoSize -Show
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
|
||||
|
||||
Remove-Item .\testFormula.xlsx -ErrorAction Ignore
|
||||
|
||||
@"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
. ..\New-PSItem.ps1
|
||||
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
|
||||
|
||||
rm *.xlsx
|
||||
Remove-Item *.xlsx
|
||||
|
||||
$(
|
||||
New-PSItem =2%/12 60 500000 "=pmt(rate,nper,pv)" (echo rate nper pv pmt)
|
||||
New-PSItem =3%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
New-PSItem =4%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
New-PSItem =5%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
New-PSItem =6%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
New-PSItem =7%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
New-PSItem =3%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
New-PSItem =4%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
New-PSItem =5%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
New-PSItem =6%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
New-PSItem =7%/12 60 500000 "=pmt(rate,nper,pv)"
|
||||
) | Export-Excel functions.xlsx -AutoNameRange -AutoSize -Show
|
||||
@@ -1,8 +1,10 @@
|
||||
rm *.xlsx
|
||||
try {. $PSScriptRoot\..\..\LoadPSD1.ps1} catch {}
|
||||
|
||||
Remove-Item *.xlsx
|
||||
|
||||
$(
|
||||
New-PSItem '=Hyperlink("http://dougfinke.com/blog","Doug Finke")' @("Link")
|
||||
New-PSItem '=Hyperlink("http://blogs.msdn.com/b/powershell/","PowerShell Blog")'
|
||||
New-PSItem '=Hyperlink("http://blogs.technet.com/b/heyscriptingguy/","Hey, Scripting Guy")'
|
||||
|
||||
) | Export-Excel hyperlink.xlsx -AutoSize -Show
|
||||
|
||||
) | Export-Excel hyperlink.xlsx -AutoSize -Show
|
||||
|
||||
BIN
Examples/SpreadsheetCells/hyperlink.xlsx
Normal file
BIN
Examples/SpreadsheetCells/hyperlink.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user