Automation-Object argument type mismatch

You called a method of an OLE Automation object and included one or more arguments whose data type differs from the corresponding parameters in the method's definition. The data type of each argument must be the same as the data type of the corresponding parameter.

Check the documentation for the OLE Automation object to ascertain the data type of each of the method's parameters.