You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something in this workbook is raising this error:
Failed importing the Excel workbook 'C:\Data\CopiedData.xlsm' with worksheet 'Sheet1': Cannot index into a null array.
This workbook is a pared down version of a much larger workbook, I've deleted all other sheets, all other data, all vba code, everything except the header column row and the one row of data.
This is my call to ImportExcel: $Data = Import-Excel -Path "C:\Data\CopiedData.xlsm" -ImportColumns 1,2 -WorksheetName "Sheet1" -DataOnly -StartRow 1 -AsText "*";
I've found that regardless of what I put in the WorksheetName param, I get the same result, even if I omit the WorksheetName param, I get the same result.
Something in this workbook is raising this error:
Failed importing the Excel workbook 'C:\Data\CopiedData.xlsm' with worksheet 'Sheet1': Cannot index into a null array.
This workbook is a pared down version of a much larger workbook, I've deleted all other sheets, all other data, all vba code, everything except the header column row and the one row of data.
This is my call to ImportExcel:
$Data = Import-Excel -Path "C:\Data\CopiedData.xlsm" -ImportColumns 1,2 -WorksheetName "Sheet1" -DataOnly -StartRow 1 -AsText "*";
I've found that regardless of what I put in the WorksheetName param, I get the same result, even if I omit the WorksheetName param, I get the same result.
See attached zipped up .xlsm file
CopiedData.zip
Tried versions 7.8.6 and 7.8.9
Really appreciate any help anyone can provide.
The text was updated successfully, but these errors were encountered: