protect part of a document 
Author Message
 protect part of a document

Hi.

A long time ago I read that it is possible to protect only part of a
document from changes/editing (mainly from users), but alas I forgot how. As
I recal it had something to do with section breaks, but the only property
that makes any sense in this context is ProtectedForForms and it doesn't
work the way I expected.
Can anyone help me (Word 97) - either with the property mentioned (how
exactly does it work) or with another method to protect only some sections
of a document (the users have the ability to enter huge amount of text and
therefore I cannot use only forms for input).

Regards
Seth Gecko



Sat, 31 Aug 2002 03:00:00 GMT  
 protect part of a document
HI Seth,

You can protect a section of the document for forms without actually having
any formfields in that section.

So, assuming that it is the first part of the document that you want to
protect, insert a Section Break (probably a Continuous one) between that
part of the document and the part in which you want the user to be able to
make changes, the in the Protect Document dialog, select the Forms option,
click on the Sections button and uncheck Section 2.  The user will then be
able to edit Section 2 of the document, albeit with some restrictions on
functionality, such as spell checking.  If you want the user to be able to
spell check what they type, create a macro containing the following code and
either assign it to the keyboard or add a button to the toolbar to run it.
It will unprotect the document, run the spell checker then reprotect the
document:

ActiveDocument.Unprotect
Selection.WholeStory
Selection.LanguageID = wdEnglishAUS
#If VBA6 Then
Selection.NoProofing = False
#End If
ActiveDocument.CheckSpelling
ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

Hope this helps,
Doug Robbins - Word MVP
Please post any follow-up to the Newsgroups so that others may benefit
therefrom or contribute thereto.

Quote:
> Hi.

> A long time ago I read that it is possible to protect only part of a
> document from changes/editing (mainly from users), but alas I forgot how.
As
> I recal it had something to do with section breaks, but the only property
> that makes any sense in this context is ProtectedForForms and it doesn't
> work the way I expected.
> Can anyone help me (Word 97) - either with the property mentioned (how
> exactly does it work) or with another method to protect only some sections
> of a document (the users have the ability to enter huge amount of text and
> therefore I cannot use only forms for input).

> Regards
> Seth Gecko



Sat, 31 Aug 2002 03:00:00 GMT  
 protect part of a document
Thanks a lot, it was just what I was looking for. The document has of course
to be protected before the ProtectedForForms has any affect.
I'm sure the example concerning spellchecking can come in handy.
Thanks.

Doug Robbins skrev i meddelelsen ...

Quote:
>HI Seth,

>You can protect a section of the document for forms without actually having
>any formfields in that section.

>So, assuming that it is the first part of the document that you want to
>protect, insert a Section Break (probably a Continuous one) between that
>part of the document and the part in which you want the user to be able to
>make changes, the in the Protect Document dialog, select the Forms option,
>click on the Sections button and uncheck Section 2.  The user will then be
>able to edit Section 2 of the document, albeit with some restrictions on
>functionality, such as spell checking.  If you want the user to be able to
>spell check what they type, create a macro containing the following code
and
>either assign it to the keyboard or add a button to the toolbar to run it.
>It will unprotect the document, run the spell checker then reprotect the
>document:

>ActiveDocument.Unprotect
>Selection.WholeStory
>Selection.LanguageID = wdEnglishAUS
>#If VBA6 Then
>Selection.NoProofing = False
>#End If
>ActiveDocument.CheckSpelling
>ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

>Hope this helps,
>Doug Robbins - Word MVP
>Please post any follow-up to the Newsgroups so that others may benefit
>therefrom or contribute thereto.


>> Hi.

>> A long time ago I read that it is possible to protect only part of a
>> document from changes/editing (mainly from users), but alas I forgot how.
>As
>> I recal it had something to do with section breaks, but the only property
>> that makes any sense in this context is ProtectedForForms and it doesn't
>> work the way I expected.
>> Can anyone help me (Word 97) - either with the property mentioned (how
>> exactly does it work) or with another method to protect only some
sections
>> of a document (the users have the ability to enter huge amount of text
and
>> therefore I cannot use only forms for input).

>> Regards
>> Seth Gecko



Sat, 31 Aug 2002 03:00:00 GMT  
 protect part of a document
Hi Doug,

I caught a typo in your message.

Instead of:

Quote:
> Selection.LanguageID = wdEnglishAUS

I think you wanted:

Quote:
> Selection.LanguageID = wdEnglishUS

<g>
--
Bill Coan
Macros, templates, wizards, add-ins for Word
For more information, visit: www.wordsite.com
Quote:




Quote:
> HI Seth,

> You can protect a section of the document for forms without actually
having
> any formfields in that section.

> So, assuming that it is the first part of the document that you want to
> protect, insert a Section Break (probably a Continuous one) between that
> part of the document and the part in which you want the user to be able to
> make changes, the in the Protect Document dialog, select the Forms option,
> click on the Sections button and uncheck Section 2.  The user will then be
> able to edit Section 2 of the document, albeit with some restrictions on
> functionality, such as spell checking.  If you want the user to be able to
> spell check what they type, create a macro containing the following code
and
> either assign it to the keyboard or add a button to the toolbar to run it.
> It will unprotect the document, run the spell checker then reprotect the
> document:

> ActiveDocument.Unprotect
> Selection.WholeStory
> Selection.LanguageID = wdEnglishAUS
> #If VBA6 Then
> Selection.NoProofing = False
> #End If
> ActiveDocument.CheckSpelling
> ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

> Hope this helps,
> Doug Robbins - Word MVP
> Please post any follow-up to the Newsgroups so that others may benefit
> therefrom or contribute thereto.


> > Hi.

> > A long time ago I read that it is possible to protect only part of a
> > document from changes/editing (mainly from users), but alas I forgot
how.
> As
> > I recal it had something to do with section breaks, but the only
property
> > that makes any sense in this context is ProtectedForForms and it doesn't
> > work the way I expected.
> > Can anyone help me (Word 97) - either with the property mentioned (how
> > exactly does it work) or with another method to protect only some
sections
> > of a document (the users have the ability to enter huge amount of text
and
> > therefore I cannot use only forms for input).

> > Regards
> > Seth Gecko



Sat, 31 Aug 2002 03:00:00 GMT  
 protect part of a document
Nah,

It should have been wdEnglishOz.

Hope this helps,
Doug Robbins - Word MVP
Please post any follow-up to the Newsgroups so that others may benefit
therefrom or contribute thereto.


Quote:
> Hi Doug,

> I caught a typo in your message.

> Instead of:
> > Selection.LanguageID = wdEnglishAUS

> I think you wanted:
> > Selection.LanguageID = wdEnglishUS

> <g>
> --
> Bill Coan
> Macros, templates, wizards, add-ins for Word
> For more information, visit: www.wordsite.com



> > HI Seth,

> > You can protect a section of the document for forms without actually
> having
> > any formfields in that section.

> > So, assuming that it is the first part of the document that you want to
> > protect, insert a Section Break (probably a Continuous one) between that
> > part of the document and the part in which you want the user to be able
to
> > make changes, the in the Protect Document dialog, select the Forms
option,
> > click on the Sections button and uncheck Section 2.  The user will then
be
> > able to edit Section 2 of the document, albeit with some restrictions on
> > functionality, such as spell checking.  If you want the user to be able
to
> > spell check what they type, create a macro containing the following code
> and
> > either assign it to the keyboard or add a button to the toolbar to run
it.
> > It will unprotect the document, run the spell checker then reprotect the
> > document:

> > ActiveDocument.Unprotect
> > Selection.WholeStory
> > Selection.LanguageID = wdEnglishAUS
> > #If VBA6 Then
> > Selection.NoProofing = False
> > #End If
> > ActiveDocument.CheckSpelling
> > ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

> > Hope this helps,
> > Doug Robbins - Word MVP
> > Please post any follow-up to the Newsgroups so that others may benefit
> > therefrom or contribute thereto.


> > > Hi.

> > > A long time ago I read that it is possible to protect only part of a
> > > document from changes/editing (mainly from users), but alas I forgot
> how.
> > As
> > > I recal it had something to do with section breaks, but the only
> property
> > > that makes any sense in this context is ProtectedForForms and it
doesn't
> > > work the way I expected.
> > > Can anyone help me (Word 97) - either with the property mentioned (how
> > > exactly does it work) or with another method to protect only some
> sections
> > > of a document (the users have the ability to enter huge amount of text
> and
> > > therefore I cannot use only forms for input).

> > > Regards
> > > Seth Gecko



Sun, 01 Sep 2002 03:00:00 GMT  
 protect part of a document
Ah, I see! That would make you the wizard, wouldn't it? ;-)

--
Bill Coan
Macros, templates, wizards, add-ins for Word
For more information, visit: www.wordsite.com

Quote:




Quote:
> Nah,

> It should have been wdEnglishOz.

> Hope this helps,
> Doug Robbins - Word MVP
> Please post any follow-up to the Newsgroups so that others may benefit
> therefrom or contribute thereto.


> > Hi Doug,

> > I caught a typo in your message.

> > Instead of:
> > > Selection.LanguageID = wdEnglishAUS

> > I think you wanted:
> > > Selection.LanguageID = wdEnglishUS

> > <g>
> > --
> > Bill Coan
> > Macros, templates, wizards, add-ins for Word
> > For more information, visit: www.wordsite.com



> > > HI Seth,

> > > You can protect a section of the document for forms without actually
> > having
> > > any formfields in that section.

> > > So, assuming that it is the first part of the document that you want
to
> > > protect, insert a Section Break (probably a Continuous one) between
that
> > > part of the document and the part in which you want the user to be
able
> to
> > > make changes, the in the Protect Document dialog, select the Forms
> option,
> > > click on the Sections button and uncheck Section 2.  The user will
then
> be
> > > able to edit Section 2 of the document, albeit with some restrictions
on
> > > functionality, such as spell checking.  If you want the user to be
able
> to
> > > spell check what they type, create a macro containing the following
code
> > and
> > > either assign it to the keyboard or add a button to the toolbar to run
> it.
> > > It will unprotect the document, run the spell checker then reprotect
the
> > > document:

> > > ActiveDocument.Unprotect
> > > Selection.WholeStory
> > > Selection.LanguageID = wdEnglishAUS
> > > #If VBA6 Then
> > > Selection.NoProofing = False
> > > #End If
> > > ActiveDocument.CheckSpelling
> > > ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

> > > Hope this helps,
> > > Doug Robbins - Word MVP
> > > Please post any follow-up to the Newsgroups so that others may benefit
> > > therefrom or contribute thereto.


> > > > Hi.

> > > > A long time ago I read that it is possible to protect only part of a
> > > > document from changes/editing (mainly from users), but alas I forgot
> > how.
> > > As
> > > > I recal it had something to do with section breaks, but the only
> > property
> > > > that makes any sense in this context is ProtectedForForms and it
> doesn't
> > > > work the way I expected.
> > > > Can anyone help me (Word 97) - either with the property mentioned
(how
> > > > exactly does it work) or with another method to protect only some
> > sections
> > > > of a document (the users have the ability to enter huge amount of
text
> > and
> > > > therefore I cannot use only forms for input).

> > > > Regards
> > > > Seth Gecko



Sun, 01 Sep 2002 03:00:00 GMT  
 protect part of a document
Not if it means that I am confined to your website.

Hope this helps,
Doug Robbins - Word MVP
Please post any follow-up to the Newsgroups so that others may benefit
therefrom or contribute thereto.


Quote:
> Ah, I see! That would make you the wizard, wouldn't it? ;-)

> --
> Bill Coan
> Macros, templates, wizards, add-ins for Word
> For more information, visit: www.wordsite.com



> > Nah,

> > It should have been wdEnglishOz.

> > Hope this helps,
> > Doug Robbins - Word MVP
> > Please post any follow-up to the Newsgroups so that others may benefit
> > therefrom or contribute thereto.


> > > Hi Doug,

> > > I caught a typo in your message.

> > > Instead of:
> > > > Selection.LanguageID = wdEnglishAUS

> > > I think you wanted:
> > > > Selection.LanguageID = wdEnglishUS

> > > <g>
> > > --
> > > Bill Coan
> > > Macros, templates, wizards, add-ins for Word
> > > For more information, visit: www.wordsite.com



> > > > HI Seth,

> > > > You can protect a section of the document for forms without actually
> > > having
> > > > any formfields in that section.

> > > > So, assuming that it is the first part of the document that you want
> to
> > > > protect, insert a Section Break (probably a Continuous one) between
> that
> > > > part of the document and the part in which you want the user to be
> able
> > to
> > > > make changes, the in the Protect Document dialog, select the Forms
> > option,
> > > > click on the Sections button and uncheck Section 2.  The user will
> then
> > be
> > > > able to edit Section 2 of the document, albeit with some
restrictions
> on
> > > > functionality, such as spell checking.  If you want the user to be
> able
> > to
> > > > spell check what they type, create a macro containing the following
> code
> > > and
> > > > either assign it to the keyboard or add a button to the toolbar to
run
> > it.
> > > > It will unprotect the document, run the spell checker then reprotect
> the
> > > > document:

> > > > ActiveDocument.Unprotect
> > > > Selection.WholeStory
> > > > Selection.LanguageID = wdEnglishAUS
> > > > #If VBA6 Then
> > > > Selection.NoProofing = False
> > > > #End If
> > > > ActiveDocument.CheckSpelling
> > > > ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

> > > > Hope this helps,
> > > > Doug Robbins - Word MVP
> > > > Please post any follow-up to the Newsgroups so that others may
benefit
> > > > therefrom or contribute thereto.


> > > > > Hi.

> > > > > A long time ago I read that it is possible to protect only part of
a
> > > > > document from changes/editing (mainly from users), but alas I
forgot
> > > how.
> > > > As
> > > > > I recal it had something to do with section breaks, but the only
> > > property
> > > > > that makes any sense in this context is ProtectedForForms and it
> > doesn't
> > > > > work the way I expected.
> > > > > Can anyone help me (Word 97) - either with the property mentioned
> (how
> > > > > exactly does it work) or with another method to protect only some
> > > sections
> > > > > of a document (the users have the ability to enter huge amount of
> text
> > > and
> > > > > therefore I cannot use only forms for input).

> > > > > Regards
> > > > > Seth Gecko



Mon, 02 Sep 2002 03:00:00 GMT  
 protect part of a document
Hi Doug,

I lost you on that one. I was teasing about the nation-centric nature of
your code and my real point was to make fun of myself as an American who
notices things like that. Did my ship pass yours in the night?

--
Bill Coan
Macros, templates, wizards, add-ins for Word
For more information, visit: www.wordsite.com

Quote:




Quote:
> Not if it means that I am confined to your website.

> Hope this helps,
> Doug Robbins - Word MVP
> Please post any follow-up to the Newsgroups so that others may benefit
> therefrom or contribute thereto.


> > Ah, I see! That would make you the wizard, wouldn't it? ;-)

> > --
> > Bill Coan
> > Macros, templates, wizards, add-ins for Word
> > For more information, visit: www.wordsite.com



> > > Nah,

> > > It should have been wdEnglishOz.

> > > Hope this helps,
> > > Doug Robbins - Word MVP
> > > Please post any follow-up to the Newsgroups so that others may benefit
> > > therefrom or contribute thereto.


> > > > Hi Doug,

> > > > I caught a typo in your message.

> > > > Instead of:
> > > > > Selection.LanguageID = wdEnglishAUS

> > > > I think you wanted:
> > > > > Selection.LanguageID = wdEnglishUS

> > > > <g>
> > > > --
> > > > Bill Coan
> > > > Macros, templates, wizards, add-ins for Word
> > > > For more information, visit: www.wordsite.com



> > > > > HI Seth,

> > > > > You can protect a section of the document for forms without
actually
> > > > having
> > > > > any formfields in that section.

> > > > > So, assuming that it is the first part of the document that you
want
> > to
> > > > > protect, insert a Section Break (probably a Continuous one)
between
> > that
> > > > > part of the document and the part in which you want the user to be
> > able
> > > to
> > > > > make changes, the in the Protect Document dialog, select the Forms
> > > option,
> > > > > click on the Sections button and uncheck Section 2.  The user will
> > then
> > > be
> > > > > able to edit Section 2 of the document, albeit with some
> restrictions
> > on
> > > > > functionality, such as spell checking.  If you want the user to be
> > able
> > > to
> > > > > spell check what they type, create a macro containing the
following
> > code
> > > > and
> > > > > either assign it to the keyboard or add a button to the toolbar to
> run
> > > it.
> > > > > It will unprotect the document, run the spell checker then
reprotect
> > the
> > > > > document:

> > > > > ActiveDocument.Unprotect
> > > > > Selection.WholeStory
> > > > > Selection.LanguageID = wdEnglishAUS
> > > > > #If VBA6 Then
> > > > > Selection.NoProofing = False
> > > > > #End If
> > > > > ActiveDocument.CheckSpelling
> > > > > ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True

> > > > > Hope this helps,
> > > > > Doug Robbins - Word MVP
> > > > > Please post any follow-up to the Newsgroups so that others may
> benefit
> > > > > therefrom or contribute thereto.


> > > > > > Hi.

> > > > > > A long time ago I read that it is possible to protect only part
of
> a
> > > > > > document from changes/editing (mainly from users), but alas I
> forgot
> > > > how.
> > > > > As
> > > > > > I recal it had something to do with section breaks, but the only
> > > > property
> > > > > > that makes any sense in this context is ProtectedForForms and it
> > > doesn't
> > > > > > work the way I expected.
> > > > > > Can anyone help me (Word 97) - either with the property
mentioned
> > (how
> > > > > > exactly does it work) or with another method to protect only
some
> > > > sections
> > > > > > of a document (the users have the ability to enter huge amount
of
> > text
> > > > and
> > > > > > therefore I cannot use only forms for input).

> > > > > > Regards
> > > > > > Seth Gecko



Mon, 02 Sep 2002 03:00:00 GMT  
 
 [ 8 post ] 

 Relevant Pages 

1. Protect list box without protecting entire document?

2. Reading parts of email messages into a Word document

3. use a field in the document as part of file name

4. Save a Document with Bookmarks as part of file name

5. Retrieve parts of a document

6. Word 2000 only print a part of the document

7. How to populate the list box and how to return to specific part of document

8. Macro to copy selective parts of Excel documents

9. Customizing documents web part SPS

10. "Ask" field and protecting a document

11. print envelope in a protected document

12. Using the same password as the logged user's to protect the document

 

 
Powered by phpBB® Forum Software