View Single Post
 
Old 03-09-2023, 02:31 AM
Ddadoo57 Ddadoo57 is offline Windows 11 Office 2021
Advanced Beginner
 
Join Date: Feb 2023
Posts: 90
Ddadoo57 is on a distinguished road
Default how to properly cancel the current process through AutoClose() sub()

Hello,

when closing a document (which already exists in the base and which I open by clicking on it), vba passes through the AutoClose() procedure which has no arguments, and not in BeforeClose(Cancel As Boolean) as it does for a newly created document.

The problem I have in this case is that I can't properly cancel the current process, as can be done in BeforeClose(...) with Cancel = True.

Is there a solution to simulate a BeforeClore in an AutoClose without input arguments?

Best Regards,
David
Reply With Quote