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 / November 2006

Tip: Looking for answers? Try searching our database.

Lock range for editing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Guillermo López-Anglada - 21 Nov 2006 22:53 GMT
Hello all,

Is there any way of programmatically locking a text range for editing (i. e., the Backspace key wouldn't delete any
character within it and it wouldn't be possible to copy or paste it)? I'm not talking about form fields.

I want to prevent the user from editing different parts of a document that will have a distinctive formatting.

Cheers,

Guillermo
Jezebel - 21 Nov 2006 23:32 GMT
Put section breaks around the ranges you want locked, and protect those
sections. But in practice it's usually more trouble than it's worth: a) some
users will be seriously disconcerted by the document's "misbehaviour" and
they'll ring you up to say so; and b) if users want to defeat your security
measure they will.

Asking nicely is usually just as effective, and less work.

> Hello all,
>
[quoted text clipped - 9 lines]
>
> Guillermo
Guillermo López-Anglada - 22 Nov 2006 20:22 GMT
Hi Jezebel,

Thanks for the tip. I'll experiment with that. Actually, the protection I need is in the interest of the user, since
they have to edit text within the protected range all the time, and I want to stop them from pressing Backspace too many
times. I don't know if it's clear -- in protecting the delitimiting "tags" they won't have to take extra care not to
mess them up. I've seen that done in a macro and the protection method looked pretty robust, but I can't figure out how
it works.

Thanks again,

Guillermo

> Put section breaks around the ranges you want locked, and protect those
> sections. But in practice it's usually more trouble than it's worth: a) some
[quoted text clipped - 17 lines]
>>
>> Guillermo
macropod - 22 Nov 2006 02:16 GMT
Hi Guillermo,

You can secure the parts you want to lock by first outputting them to eps
files, then embedding those in your document. Apart from the risk of an
embedded eps object being deleted, or copied in its entirety and pasted to
another location, few users would be able to edit an eps object. Although
eps object tend to look rough on screen, they'll still print at high
resolution.

Cheers

Signature

macropod
[MVP - Microsoft Word]

> Hello all,
>
[quoted text clipped - 6 lines]
>
> Guillermo
 
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.