Event on new/open (old event)

Modified on Mon, 5 Oct at 1:52 PM

This event enables commands to run when a document is opened. Notice that this counts for both a new document but also when a saved document is opened.

We have two other events that are specifically for either new document or open existing document.

<event type="BaseExtensions:NewDocument" >

As an example, this can be used for running Autocorrect Management, where it is possible to open Office programs and use custom auto corrections. Read more about that in this article.

Excel

We have another event type called NewDocumentNoEmbedded which should be used when you want the functionality of NewDocument in Excel where it should only be triggered/run on "real" Excel document, and not on embedded Excel objects (in Word or PowerPoint). In this way, NewDocumentNoEmbedded works exactly like NewDocument, but does not get triggered on embedded OLE objects.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article