Occurs before a page is saved.
Syntax
Private Sub Application_OnBeforePageSave(pPage As PageWindow, _
SaveAsUI As Boolean, Cancel As Boolean)
pPage Required PageWindow. The specified PageWindow object.
SaveAsUI Required Boolean. True for the first time the page has been saved. If SaveAsUI is True then the user used the SaveAs dialog box to save the page; if SaveAsUI is False, then the user used the Save dialog box to save an existing file.
Cancel Required Boolean. Causes Microsoft FrontPage to abort the save when set to True. When Cancel is programmatically set to True, the user can abort the save process by clicking the Cancel button on the form. Default is False.
Remarks
The OnBeforePageSave event is associated with the Application object. When the user saves a page or closes FrontPage, the OnBeforePageSave event fires and executes the code that you specified within the event procedure.
Note If you set Cancel to True, the page won't be saved.