The CreateObject function requires a valid server. This error has the following cause and solution:

  • A server parameter was specified, but the specified class progid (the first parameter of theCreateObject function) is not registered on the local system.