我已经在Office 2010中的Excel中开发了VBA代码,该代码在Office 2015之前都可以正常工作。最近我切换到Office 365,现在面临兼容性问题。我相信缺少对象库,但不确定在哪里引用。
代码:
Dim saxReader As SAXXMLReader60
Dim saxhandler As ContentHandlerImpl
Set saxReader = New SAXXMLReader60
Set saxhandler = New ContentHandlerImpl
Set saxReader.contentHandler = saxhandler
saxReader.parseURL SecurityReportPath