diff --git a/Public/ConvertTo-ExcelXlsx.ps1 b/Public/ConvertTo-ExcelXlsx.ps1 index f1150752..354282bc 100644 --- a/Public/ConvertTo-ExcelXlsx.ps1 +++ b/Public/ConvertTo-ExcelXlsx.ps1 @@ -19,7 +19,7 @@ function ConvertTo-ExcelXlsx { $xlFixedFormat = 51 #Constant for XLSX Workbook $xlsFile = Get-Item -Path $singlePath - $xlsxPath = "{0}x" -f $xlsFile.FullName + $xlsxPath = [System.IO.Path]::ChangeExtension($xlsFile.FullName, ".xlsx") if ($xlsFile.Extension -ne ".xls") { throw "Expected .xls extension"