I tried it with the method: save instead of saveAs ::ReleaseComObject($Excel) | Out-NullĮxception calling "SaveAs" with "1" argument(s): "Cannot access 'Logfile.xlsx'." # Terminates all the Excel processes in the background # Adds the standard format for the excel file # Retrieves the hardware and software information from the client and stores them in variables $Excel = new-object -comobject excel.application # Alters the cultural settings to en-US (is needed due to a bug) In the first step I create an Excel file with: # Fatches the number of the column for starting the report Once again I got an Excel related issue which is crushing my head for quite some time now.
0 Comments
Leave a Reply. |