into
Technical User
- Dec 16, 2002
- 17
Is there any way to do something juust before the user saves the document?
/Torfi
/Torfi
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
Public WithEvents appWD As Application
Private Sub Class_Initialize()
Set appWD = Word.Application
End Sub
Private Sub appWD_DocumentBeforeSave(ByVal Doc As Document, SaveAsUI As Boolean, Cancel As Boolean)
If MsgBox("Do you want to save?", vbYesNo, "Save?") = vbYes Then Exit Sub
SaveAsUI = False
Cancel = True
End Sub
Option Explicit
Dim wdDoc As New Class_App
Private Sub Document_Open()
Set wdDoc.appWD = Word.Application
End Sub