Update README.md

This commit is contained in:
Alex Kup 2023-04-18 15:27:41 +03:00 committed by GitHub
parent efa2288004
commit cc8e043db7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2014,7 +2014,7 @@ $Result.Values.ethernets.ens160.nameservers
`$null,Tennessee,466,770.67` \
`"@`
### Excel.Application
### Excel.Application.Creat
```
$path = "$home\Desktop\Services-to-Excel.xlsx"
$Excel = New-Object -ComObject Excel.Application
@ -2065,7 +2065,9 @@ $counter++ # +1 увеличить для счетчика строки Rows
$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-файл