PDA

View Full Version : Rich Text Content Control Question?



austin350s10
11-19-2011, 11:44 AM
Here’s what I am trying to do. I am working on a word doc in which I have inserted 3 Rich Text Content Control boxes into. I don’t want the user to edit anything else except the Rich Text areas, so I protect the doc. I protected the doc with editing restrictions checked that allow the user to fill in forms, so I figured there would be no problems when it can to my user adding text in these areas.

Well, it turns out that the protection works exactly as it states. This is good for most, but bad for me. You see, the doc protection only allows a user to enter text, nothing else. My users need to be able to apply formatting like, adding lists, changing font(color, size, weight)…etc…

My question is, is there a way to get around this without the user physically turning off protection? Anyone know of a sneaky macro that help my users out without being to obtrusive? Or am I going about this entirely the wrong way? Any help would be greatly appreciated….

Oh yeah, I’m using word 2007

gmaxey
11-20-2011, 06:22 AM
Austin,

If your users are cooperative (i.e., not going to look for ways to unlock your document and mess it up) then you can abandon the protection. All you need to do is select the entire document and insert a "Group" content control.

The "Group" will prevent users from altering the text outside the three rich text controls but you will still have the ability to edit text within the controls.

Paul_Hossler
11-20-2011, 07:01 AM
If your users are cooperative ...
.


What is this 'cooperative user' of which you speak?:think:

50% of my VBA goes to protecting users from themselves

40% goes to protecting the document from the users

10% goes to actually doing the application

Paul

austin350s10
11-20-2011, 08:25 AM
thanks Group works perfectly!!!