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
Syntaxvoid OnCurrentDocumentCreated()
Sub OnCurrentDocumentCreated
Dim instance As IScriptingEvents
instance.OnCurrentDocumentCreated()
void OnCurrentDocumentCreated()
ExamplesDescription
This text may be copied to the notepad, and saved as a *.vbs file.
Sub OnCurrentDocumentCreated
If CurrentDocument.Template.Text = "Memo" Then
SOMessageBox "A new memo was created"
End If
End Sub
See Also