![]() ![]() ![]() Now, you want to protect the document but also allow some parts of it to be editable by your team. Select No changes (Read only) from the dropdown. Under Editing restrictions, select the checkbox for Allow only this type of editing in the document. I am struggling to write a generic loop which should select all content control properties & then explicitly allow only selection for modification in a documentĪnd apply below code on the rest of document.ĪctiveDocument. Go to the Ribbon > Review > Protect group > Restrict Editing. If I manually select all form fields -> restrict editing -> select 'allow only this type of editing in the document' -> under exception select 'everyone' -> yes, start enforcing protection => then it works as expected ( allows only form fields editing & still can add table/image to form fields). ![]() Type:=wdAllowOnlyFormFields, NoReset:=True If ActiveDocument.ProtectionType = wdNoProtection Then I tried this macro, it does work and allows modification only to form fields(content control properties), however takes away capabilities to insert any image or table in these content control properties. I am trying to write a macro, which should restrict any changes to Form except allowing content control properties. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |