Character formatting with protected document

C

Chris Baca

Howdy folks, I need to allow character level styles such as bold, italic, etc and enable this functionality through the standard formatting toolbar. I also need to lock down styles so that users to accidentally add new styles. I have tried the following approach creating a MyStyles.dot file with my custom styles and locating it in C:\Documents and Settings\Chris\Application Data\Microsoft\Templates
I then open my boilerplate doc meant for end-users to edit. Change the document template from Normal.dot to MyStyles.dot. Now my special styles are available in the boilerplate

Trouble is, end users can add styles inadvertently and can use styles based on Normal.dot still.

Locking down styles by using Protect document disables character level formatting. Any suggestions?
 
J

Jay Freedman

Hi Chris

In versions of Word up to 2002, pretty much your only solution is a set of
macros to intercept the Save, SaveAs, Print, and Close commands. Each macro
needs to check the document for "unauthorized" styles and disallow the
operation until they're removed. See
http://word.mvps.org/FAQs/MacrosVBA/InterceptSavePrint.htm for a discussion,
and come back here if you can't figure it out.

Word 2003 has a new feature that lets you specifically "protect the document
for styles" (it isn't called that, but that's the effect). You can specify
in the template the exact set of styles that can be applied, and the user
can't get to any others or create their own.
 
Top