Partial Document Protection

I

Iroel Perez

Is there a way to put a Word Document in a state where the user can only
modify the format of the paragraphs (fonts, colors, style, ect); but do not
modify the text (insert, delete, replace, ect)?

I need this because I am doing something in a modeless VBA form and editing
will mess up my ranges.

Thanks in advance for any suggestion.

-Iroel
 
H

Howard Kaikow

Iroel Perez said:
Is there a way to put a Word Document in a state where the user can only
modify the format of the paragraphs (fonts, colors, style, ect); but do not
modify the text (insert, delete, replace, ect)?

I need this because I am doing something in a modeless VBA form and editing
will mess up my ranges.

You could try keeping track of the .Start and length of each range, but I
expect that would be a coding mess.

When using modeless forms, your code has to protect itself by
re-establishing the values for each range just before the code operates on
the range. Not to mention, assuring that the code is operating on the
correct document in case the user has closed a document or change the active
document.

Or, when needed, display the Form as vbModal to protect the documents from
those pesky users,
 
C

Cindy M -WordMVP-

Hi Iroel,
Is there a way to put a Word Document in a state where the user can only
modify the format of the paragraphs (fonts, colors, style, ect); but do not
modify the text (insert, delete, replace, ect)?
No, there's nothing like this in Word. Which version is involved? If it's
2003, then you could probably use the "Read-only" type of protection (which
will still allow the user to select). Then supply all the formatting you want
to provide to the user through your own menus and toolbars. The code behind
these controls can take care of removing protection, applying the formatting,
then re-protecting.
I need this because I am doing something in a modeless VBA form and editing
will mess up my ranges.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top