Solution
The error code -2146827864 is undefined. Undefined error codes might occur because the error relates to a third-party object, such as the MS Excel or ActiveX.
Using incompatible versions of software, driver and toolkit may result in similar errors. To ensure you install the correct toolkit version when upgrading or updating your system or software please refer to
Report Generation Toolkit and Microsoft Office and LabVIEW Compatibility - NI documentation. If everything is compatible but you still having the error, try to reinstall MS Excel.