Automation-Object error

An error occurred when you tried to refer to an OLE Automation object.

Check the syntax of the statement that caused the error, and check the documentation for the OLE Automation object to which you tried to refer.