View Single Post
 
Old 02-01-2023, 10:25 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 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

If the aim is to allow the user to edit only part of the document, e.g. in your sample to add the name and address, you don't need a macro. You can use content content controls to accept the user input and add editors to the controls before protecting as read only and then the user can only edit the content control contents. See attached (the password is the same as your sample).
The easiest way to do this is to use Insert Content Control Add-In which includes the options to add editors and protect the document. It can be done without, but it is more fiddly to do so.
Attached Files
File Type: docx sample text without macro1.docx (27.0 KB, 4 views)
__________________
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