Overview | Module | Use | Devguide | Index

Constants | Constants' Details

:: com :: sun :: star :: script :: vba ::
unpublished | constants group VBAScriptEventId |
Usage Restrictions not published Description Identifies a VBA script event fired via broadcastVBAScriptEvent, and received by XVBAScriptListener::notifyVBAScriptEvent. See also VBAScriptEvent, XVBACompatibility, XVBAScriptListener

Constants
SCRIPT_STARTED | This event is fired when a VBA script in the current document has been started.
SCRIPT_STOPPED | This event is fired when a VBA script in the current document stops running.
INITIALIZE_USERFORM | This event is fired when a VBA script in the current document tries to instanciate a userform.

Constants' Details
SCRIPT_STARTED
const long SCRIPT_STARTED = 0; Description This event is fired when a VBA script in the current document has been started. Several scripts may run simultaneously, e.g. when a running script triggers a document event that starts another script. The number of running scripts can be obtained via XVBACompatibility::RunningVBAScripts. The number returned there will already contain the new script notified with this event. The member VBAScriptEvent::ModuleName of the event object will contain the name of the code module that contains the started script.
SCRIPT_STOPPED
const long SCRIPT_STOPPED = 1; Description This event is fired when a VBA script in the current document stops running. Several scripts may run simultaneously, e.g. when a running script triggers a document event that starts another script. The number of scripts still running can be obtained via XVBACompatibility::RunningVBAScripts. The number returned there will not contain the stopped script notified with this event anymore. The member VBAScriptEvent::ModuleName of the event object will contain the name of the code module that contains the script that has been stopped.
INITIALIZE_USERFORM
const long INITIALIZE_USERFORM = 2; Description This event is fired when a VBA script in the current document tries to instanciate a userform. The member VBAScriptEvent::ModuleName of the event object will contain the name of the userform module.

Top of Page

Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.