A family of Microsoft relational database management systems designed for ease of use.
Thank you very much for your reply, and I apologize for not following up earlier.
For the sake of simplicity I think it is best to get this to work where there is only one event. First:
<code>
Private Sub project_BeforeClose(ByVal pj As Project)
FileCloseEx pjDoNotSave
End Sub
</code>
This gives me the error: Run-time error '1100': The method is not available in this situation. This seems to be true for all events, including BeforeSave.
Alternatively, I can delete the project_BeforeClose event altogether and create in a module:
<code>
Sub Auto_Save()
FileCloseEx pjDoNotSave
End Sub
</code>
This then gives me the same error. While the single recursion I saw earlier is really interesting, that macro included a "synchronize" event which may add unnecessary complications to this problem.
with an empty document using
<code>
Private Sub Project_BeforeSave(Cancel As Boolean)
Cancel = True
End Sub
</code>
I still get the same error: Compile error: Procedure declaration does not match description of event or procedure having the same name.
The only argument it will accept is "ByVal XXXX As project," and that limitation is consistent with the Microsoft documentation at https://msdn.microsoft.com/en-us/library/office/ff864024(v=office.14).aspx