Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-09-2023, 02:31 AM
Ddadoo57 Ddadoo57 is offline how to properly cancel the current process through AutoClose() sub() Windows 11 how to properly cancel the current process through AutoClose() sub() Office 2021
Advanced Beginner
how to properly cancel the current process through AutoClose() sub()
 
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
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to properly cancel the current process through AutoClose() sub() How to cancel a selection? johngross Word VBA 1 01-12-2019 10:15 PM
how to properly cancel the current process through AutoClose() sub() How to call current PC date and/or current PC year KIM SOLIS Excel 2 11-04-2011 06:09 PM
how to properly cancel the current process through AutoClose() sub() How to cancel printing?? RDA1959 Word 1 08-28-2011 12:44 AM
how to properly cancel the current process through AutoClose() sub() Auto insert current month's name and current year Styler001 Word 4 01-25-2010 06:40 PM
Problem with AutoClose macro and Word 2003 cholo Word VBA 0 07-08-2009 05:48 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft