I'm trying to get data from an executable excel file (which is an excel file compressed and wrapped into an .exe) without success using PowerShell. I can open it, but I can't get the values stored in it.
I've been able to get data from binary excel files though (.xlsb).
$FilePath = "d:\database\temp.xlsb"
$SheetName = "NDC"
$objExcel = New-Object -ComObject Excel.Application
$WorkBook = $objExcel.Workbooks.Open($FilePath)
$WorkSheet = $Workbook.sheets.item($SheetName)
$value = $Worksheet.Range("A1").Text
Then, my question is, is it possible to open the excel exe file and save the file with a format that can be accessed with PowerShell?