A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Character formatting with protected document



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2004, 07:16 PM
Chris Baca
external usenet poster
 
Posts: n/a
Default Character formatting with protected document

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?
  #2  
Old May 6th, 2004, 07:57 PM
Jay Freedman
external usenet poster
 
Posts: n/a
Default Character formatting with protected document

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/...tSavePrint.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.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

Chris Baca wrote:
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?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:32 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.