Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit[blue]
Dim WithEvents tjApp As Word.Application
Private Sub Class_Initialize()
Set tjApp = Application
End Sub
Private Sub tjApp_NewDocument(ByVal Doc As Document)
[green] ' This code will run whenever a New Document is created
' Do whatever you want to do here[/green]
End Sub
Private Sub tjApp_DocumentOpen(ByVal Doc As Document)
[green] ' This code will run whenever a Document is opened
' Do whatever you want to do here[/green]
End Sub[/blue]
Option Explicit[blue]
Dim tjEventClass As AppEventClass
Sub AutoExec()
Set tjEventClass = New AppEventClass
[green]' Code whatever else you want to do on initial load, here[/green]
End Sub[/blue]
Sub tjApp_NewDocument(ByVal Doc As Document)