protect part of a document
Author |
Message |
Seth Geck #1 / 8
|
 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 |
|
 |
Doug Robbin #2 / 8
|
 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 |
|
 |
Seth Geck #3 / 8
|
 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 |
|
 |
Bill Coan [Word MVP #4 / 8
|
 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 |
|
 |
Doug Robbin #5 / 8
|
 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 |
|
 |
Bill Coan [Word MVP #6 / 8
|
 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 |
|
 |
Doug Robbin #7 / 8
|
 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 |
|
 |
Bill Coan [Word MVP #8 / 8
|
 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 |
|
|
|