ImportExcel
ImportExcel copied to clipboard
Open-ExcelPackage SaveAs XLSB Format
Hi can you guide me on how to covert/save the excel file as xlsb?
Here is my current code:
$FilePath = 'D:\test' $FileName = Get-ChildItem -Path 'D:\test' -Name
Foreach ($files in $FileName) { $filename2 = $(-Join($FilePath,$files)) $excel = Open-ExcelPackage -Path $(-Join($FilePath,$files)) $workbook = $excel.SaveAs($filename2,'p@ssw0rd',50)
#("$(-Join($FilePath,$files))",'')
}
I add '50' for the xlsb format. but getting error:
Cannot find an overload for "SaveAs" and the argument count: "3"
I don't know how to declare this properly please help.
No, this is not supported.
https://github.com/JanKallman/EPPlus/issues/192