http://qs321.pair.com?node_id=11137847


in reply to Re^2: Error in Win32::OLE
in thread Error in Win32::OLE

Maybe Office 365 does not have OLE automation anymore - this seems plausible if Office 365 only runs within the browser, for example.

Maybe look on your PC whether the type library file is findable and give that to Win32::OLE::Const explicitly.

The alternative approach if all this fails is to replace all the named constants with their values, which you can acquire from Googling them.