Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2007

Tip: Looking for answers? Try searching our database.

Table Formatting in Protected Document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RichieRoch - 12 Feb 2007 22:02 GMT
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.
Jean-Guy Marcil - 13 Feb 2007 01:54 GMT
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"

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

RichieRoch - 13 Feb 2007 13:48 GMT
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

> RichieRoch was telling us:
> RichieRoch nous racontait que :
[quoted text clipped - 17 lines]
>
>     ActiveDocument.Protect wdAllowOnlyFormFields, True, "myPassword"
Jean-Guy Marcil - 13 Feb 2007 17:18 GMT
RichieRoch was telling us:
RichieRoch nous racontait que :

> Jean-Guy,
>
[quoted text clipped - 5 lines]
> 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).

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.