Examples: CreateObject function
This example creates a Notes® session and displays some information from it.
' Create a Notes session and display the current user's name.
Dim session As Variant
Set session = CreateObject("Notes.NotesSession")
Messagebox session.UserName
The following script works on Windows with Microsoft™ Word installed
Sub Initialize
Set MyApp = CreateObject ( "Word.Application")
MyApp.Visible = True
End Sub