mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-10 21:33:16 +00:00
Updated
This commit is contained in:
@@ -29,7 +29,6 @@ $xlPkg = $(
|
|||||||
New-PSItem south 40
|
New-PSItem south 40
|
||||||
) | Export-Excel $file -PassThru
|
) | Export-Excel $file -PassThru
|
||||||
|
|
||||||
|
|
||||||
$ws=$xlPkg.Workbook.Worksheets[1]
|
$ws=$xlPkg.Workbook.Worksheets[1]
|
||||||
|
|
||||||
$ws.Cells["A3"].Value = "Hello World"
|
$ws.Cells["A3"].Value = "Hello World"
|
||||||
@@ -38,12 +37,14 @@ $ws.Cells["D1:D5"].Value = "Data"
|
|||||||
|
|
||||||
$ws.Cells.AutoFitColumns()
|
$ws.Cells.AutoFitColumns()
|
||||||
|
|
||||||
$xlPkg.Save()
|
$xlPkg.Save()
|
||||||
$xlPkg.Dispose()
|
$xlPkg.Dispose()
|
||||||
|
|
||||||
Invoke-Item $file
|
Invoke-Item $file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Result
|
||||||
|

|
||||||
|
|
||||||
Known Issues
|
Known Issues
|
||||||
-
|
-
|
||||||
|
|||||||
Reference in New Issue
Block a user