The CreateObject function is used to create an object of the
type specified in the argument.
The Set statement assigns the object reference to a variable or
property. The keyword Nothing is used to unassign the object
reference from the variable or property. Good programming techniques
require that you unassign all objects before you exit the program.
<%
Set objWrd = CreateObject("Word.Application")
...
' Place any code you desire here
...
Set objWrd = Nothing
%>In this first example, we create an instance of Microsoft Word.
<%
Set objFarAway = CreateObject("Word.Application",
"FarAwayServerName")
...
' Place any code you desire here
...
Set objFarAway = Nothing
%>In this second example, we create an object on a remote site.