Programming Reference Manual
 
Syntax
 
Object = CreateObjectRemote(ClassName, ServerName)
 
Description
Creates an object in the same way as with CreateObject, but on a remote network server.
 
You can create an object on a remote networked computer by passing the name of the computer to the servername argument of CreateObjectRemote. That name is the same as the Machine Name portion of a share name: for a share named "\\MyServer\Public," servername is "MyServer."
 
Parameter
Description
ClassName
String. The application name and class of the object to create.
ServerName
String. The name of the network server where the object will be created. If servername is an empty string (""), the local machine is used.
See Also
Example
Sub Main
Dim xlApp As Object
Set xlApp = CreateObjectRemote("Excel.Application", "MyServer")
Debug.Print xlApp.Version
 
End Sub