Cant type into content controls in a form after protecting document using macro
Hi there
I have a table in a word document that has contentcontrols in each cell. Some are some dropdowns and some are richtext content controls.These are all working well
I want the document to be protected but have some macros which sort and add rows to the table so have to briefly unprotect the document to run these when they are selected.
When I use the
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
line to re-protect the document once the macro has run, it does protect the document again, but a bit too well! I am finding this glitch where I cannot type into the richtext content control boxes. If I click somewhere else on the document first, then reselect the cell with the contentcontrol I can type freely, but directly after the macro has run, I cannot type into these fields.
Anyone know what I am doing wrong? Is annoyingly close to working beautifully!
Many thanks
Richard
|