Lock range for editing

  • Thread starter Guillermo López-Anglada
  • Start date
G

Guillermo López-Anglada

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
 
J

Jezebel

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.
 
M

macropod

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

--
macropod
[MVP - Microsoft Word]


Guillermo López-Anglada said:
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.
 
G

Guillermo López-Anglada

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
 

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