Add files via upload
This commit is contained in:
parent
cc8e043db7
commit
a81a85ba5f
1 changed files with 3 additions and 1 deletions
4
posh.txt
4
posh.txt
|
|
@ -2014,7 +2014,7 @@ West,Texas,927,923.71
|
|||
$null,Tennessee,466,770.67
|
||||
"@
|
||||
|
||||
### Excel.Application
|
||||
### Excel.Application.Creat
|
||||
|
||||
$path = "$home\Desktop\Services-to-Excel.xlsx"
|
||||
$Excel = New-Object -ComObject Excel.Application
|
||||
|
|
@ -2066,6 +2066,8 @@ $ExcelWorkBook.SaveAs($path)
|
|||
$ExcelWorkBook.close($true)
|
||||
$Excel.Quit()
|
||||
|
||||
### Excel.Application.Open
|
||||
|
||||
$Excel = New-Object -ComObject Excel.Application
|
||||
$Excel.Visible = $false
|
||||
$ExcelWorkBook = $excel.Workbooks.Open($path) # открыть xlsx-файл
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue