Examples: CreateObject method (NotesUIDocument - LotusScript)

This script creates a new, blank Lotus 1-2-3 worksheet object in the Description field of the current document. Lotus123.Workbook.97 must be in the OLE registry.

Dim workspace as New NotesUIWorkspace
Dim uidoc as NotesUIDocument
Set uidoc = workspace.CurrentDocument
Call uidoc.GotoField( "Description" )
Call uidoc.CreateObject("Quarterly Reports", "Lotus123.Workbook.97")