Merge pull request #1234 from stahler/patch-2

Update open-excelpackage.md
This commit is contained in:
Doug Finke
2022-08-25 13:51:21 -04:00
committed by GitHub

View File

@@ -39,8 +39,8 @@ This will create a new file in the temp folder if it doesn't already exist. It t
### EXAMPLE 2
```text
PS\> $excela= Open-ExcelPackage -path "$xlPath" -Password $password
PS\> $sheet1 = $excel.Workbook.Worksheetsa"sheet1" ]
PS\> $excel= Open-ExcelPackage -path "$xlPath" -Password $password
PS\> $sheet1 = $excel.Workbook.Worksheets["sheet1"]
PS\> Set-ExcelRange -Range $sheet1.Cells ["E1:S1048576" ], $sheet1.Cells ["V1:V1048576" ] -NFormat ( [cultureinfo ]::CurrentCulture.DateTimeFormat.ShortDatePattern)
PS\> Close-ExcelPackage $excel -Show
```