IScriptingEventsOnDocumentOpen Method |
Document is being opened for viewing. Word or Excel or something is about to be launched.
Namespace:
SuperOffice.COM.ScriptEvents
Assembly:
Scripting.Interop (in Scripting.Interop.dll) Version: 8.0.0.0
Syntaxvoid OnDocumentOpen(
int identity
)
Sub OnDocumentOpen (
identity As Integer
)
Dim instance As IScriptingEvents
Dim identity As Integer
instance.OnDocumentOpen(identity)
void OnDocumentOpen(
[InAttribute] int identity
)
Parameters
- identity
- Type: SystemInt32
document_id
ExamplesDescription
This text may be copied to the notepad, and saved as a *.vbs file.
Sub OnDocumentOpen
somessagebox currentdocument.description & " was opened"
End Sub
See Also