Syntax
| CreateObject(Class$)
| ||||
---|---|---|---|---|---|
Description
| Create a new object of type Class$. Use Set to assign the returned object to an object variable.
| ||||
See Also
| |||||
Example
| Sub Main
Dim App As Object
Set App = CreateObject("Word.Application")
App.Move 20,30 ' move icon to 20,30
Set App = Nothing
App.Quit ' run-time error (no object)
End Sub
|