Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 02-02-2023, 10:32 PM
gmayor's Avatar
gmayor gmayor is offline macro to close document without saving but password protected Windows 10 macro to close document without saving but password protected Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Unfortunately I fail to see the logic of what you are doing and your example document doesn't disclose anything useful to aid understanding.

Either the document is editable, in which case the protection would appear superfluous, or only parts of it are editable, in which case marking those parts as editable, or better still using content controls (which are not limited to forms) would seem to make more sense.
If the document is intended to be reused then surely it would be better saved as a template and users create new documents from it, which would preclude the need to clear it between uses as the documents would match the template?
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
macro to close document without saving but password protected Close Document Without Saving Prompt Joe528 Word 3 10-08-2021 06:12 PM
macro to close document without saving but password protected Looking for ideas for a foolproof password-protected template/document Sarcas Word 2 09-11-2019 01:21 AM
VBA Macro to Open password protected Word Documents gennylk Word VBA 2 01-11-2018 11:03 PM
macro to close document without saving but password protected Macro to Unprotect password protected document pooklet Word 2 12-08-2014 01:32 AM
How to open a password-protected word document? navalava Word 1 07-01-2012 12:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:34 PM.


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