VBA to protection different Sections

S

Steve Mulvenna

Hi There,

I have a document, tht I would like to restrict the user from editing
certain area.

I have seen that it is possible to protect different sections (continous) to
different levels, however I cannot work out how it works!

My documnet is made of a series of tables and of the 6 tables in the
document, I want the user to only have editing access to tables 2 and 4. The
information contained within the other tables will be populated via a form,
and thus I need to be able to protect and unprotect via VBA.

Any suggestions?

Regards,

Steve Mulvenna
 
D

Doug Robbins - Word MVP

Use the following commands as applicable:

ActiveDocument.Sections(Index).ProtectedForForms = False

ActiveDocument.Sections(Index).ProtectedForForms = True

for each Section of the document

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

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