: The most frequent culprit is a missing or unregistered .ocx or .dll file required by the OLE object.
: Wrap your OLE calls in a TRY-CATCH block. Catching the OLERuntimeError exception allows you to inspect the "Description" property, which often provides more specific details about why the call failed.
: Use the Windows Command Prompt (as Administrator) to manually register necessary components using the regsvr32 command. Example: regsvr32 MSCOMCT2.ocx