Click or drag to resize

IScriptingEventsOnCurrentDocumentCreated Method

Called when a new object is saved for the first time.

Namespace:  SuperOffice.COM.ScriptEvents
Assembly:  Scripting.Interop (in Scripting.Interop.dll) Version: 8.0.0.0
Syntax
void OnCurrentDocumentCreated()
Examples

Description

This text may be copied to the notepad, and saved as a *.vbs file.

VB
Sub OnCurrentDocumentCreated

If CurrentDocument.Template.Text = "Memo" Then
    SOMessageBox "A new memo was created"
End If

End Sub

See Also