mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-02-10 05:30:06 +00:00
Fix password setting
This commit is contained in:
@@ -158,7 +158,7 @@ function Export-Excel {
|
||||
}
|
||||
}
|
||||
|
||||
$ws.Protection.SetPassword($Password)
|
||||
if($Password) { $ws.Protection.SetPassword($Password) }
|
||||
|
||||
$pkg.Save()
|
||||
$pkg.Dispose()
|
||||
|
||||
Reference in New Issue
Block a user