|
|
|
date: Thu, 16 Mar 2006 23:15:46 +0530,
group: microsoft.public.word.vba.customization
back
Re: prompt user text protected if tries to edit using vba code
> This is required as certain paragraphs in the template are health &
> safety and should not be amended. This way, it ensures no one can
> unless they have password to unprotect the document.
Note, you cannot ensure that someone without passwords cannot edit your
text. You can only make it difficult (and not all that difficult). If
someone can read it, they can copy it. If they can copy it, they can edit
it.
By "highlight" I assume you mean select. Highlight, in Word, means to give a
background color as if you used a highlighter or printed text.
If they aren't supposed to edit it, why is it editable?
Monitoring individual keystrokes and mouse movements via vba is very
resourse intensive.
Since you can't have real security anyway, why not simply use an online form
and skip the vba? This protects headers and footers, makes text in protected
sections so that it can't be selected, and seems to meet your other needs.
(It is still not secure, even if protected by a password.)
For more about online forms, follow the links at
http://addbalance.com/word/wordwebresources.htm#Forms or
http://word.mvps.org/FAQs/Customization/FillinTheBlanks.htm especially Dian
Chapman's series of articles. You may also want to look at
http://www.word.mvps.org/FAQs/TblsFldsFms/LinesInForms.htm.
Hope this helps,
--
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
"christine" wrote in message
news:christine.24rxru@NoSpamPleaze.com...
>
> I have protected parts of a document/paragraphs so that only
> headers/footers and certain paragraph can be edited. I have used vba
> code to turn off highlight and bookmarks of editable text so the
> document looks all the same *but now want a message to appear if user
> tries to edit protected region in word 2003*.
>
> I am not certain if there is any code that if protected selection text
> selected a message box appears to inform user they are not able to edit
> it and use code to automatically return to paragraph 1.
>
> This is required as certain paragraphs in the template are health &
> safety and should not be amended. This way, it ensures no one can
> unless they have password to unprotect the document.
>
> Many thanks
> Christine
>
>
> --
> christine
> Posted from - http://www.officehelp.in
>
date: Thu, 16 Mar 2006 12:51:31 -0600
author: Charles Kenyon
|
|