View Single Post
 
Old 01-26-2015, 06:17 AM
rgburridge rgburridge is offline Windows XP Office 2007
Novice
 
Join Date: Jan 2015
Posts: 3
rgburridge is on a distinguished road
Default 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
Reply With Quote