Hello All,
I have an excel sheet with range A:O, but I am unable to select the complete range when I want include in the Pivot, but able to get till “column L”.
Error
Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))
Line giving error
$workbook.PivotCaches().Create($xlDatabase,$selection,$xlPivotTableVersion10)
The “column m” contains some special characters like / or or = or ( or )
Can somebody help to resolve this error
Thank you
Edit : Script link => https://pastebin.com/GTrV3gJ8 Sample data =>https://ufile.io/lk0zb
Also, I am getting blank value in the pivot
submitted by /u/harshajd
[link] [comments]
The post Pivot Table: Issue with Range selection appeared first on How to Code .NET.