Table Formatting in Protected Document

R

RichieRoch

Is it possible to allow table formatting such as inserting a new row,
controlling page breaks within the table, etc. to occur in a document that is
protected? In my document, I need to allow such formatting to occur so users
can control the flow of information. However, I do not want them changing any
of the information that appears in the table itself.
 
J

Jean-Guy Marcil

RichieRoch was telling us:
RichieRoch nous racontait que :
Is it possible to allow table formatting such as inserting a new row,
controlling page breaks within the table, etc. to occur in a document
that is protected? In my document, I need to allow such formatting to
occur so users can control the flow of information. However, I do not
want them changing any of the information that appears in the table
itself.

For this type of user action in protected document I usually create little
macros for each action I want my user to be able to perform and then create
a toolbar with buttons to call those macros.

Each macro will start with

ActiveDocument.Unprotect "myPassword"

and finish with

ActiveDocument.Protect wdAllowOnlyFormFields, True, "myPassword"

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
R

RichieRoch

Jean-Guy,

Thanks for your reply. I started down that road then realized that I was
going to end up duplicating much of the functionality of the Table menu and
that didn't "feel" quite right. I guess, ideally, I'd like to write a macro
that unprotects then re-protects the document whenever a command from the
Table menu is used in a protected document. If there's a way to do that, I'd
love to hear it. Otherwise, I'll revisit the toolbar and unprotect/protect
solution.

Thanks again.
Rich
 
J

Jean-Guy Marcil

RichieRoch was telling us:
RichieRoch nous racontait que :
Jean-Guy,

Thanks for your reply. I started down that road then realized that I
was going to end up duplicating much of the functionality of the
Table menu and that didn't "feel" quite right. I guess, ideally, I'd
like to write a macro that unprotects then re-protects the document
whenever a command from the Table menu is used in a protected
document. If there's a way to do that, I'd love to hear it.
Otherwise, I'll revisit the toolbar and unprotect/protect solution.

If you have a protected document, users cannot expect to be able to do
everything they could with a regular unprotected document.
So, I do not think you need to provide the full range of table
editing/formatting options/tools.

If all of your users are on Word 2003 and above, you can set only part of
the text as protected (not only the whole section, but individual
words/paragraphs).

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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