Prevent deleting a line in word document

  • Thread starter Thread starter Jar
  • Start date Start date
J

Jar

I need to know is there any way of preventing just one line from document? Do
I have to do a whole bunch of VB coding for it?
Or, better yet, can I stop user from selecting the line at all?
 
You can enclose the line in a separate section and then protect only that
section (without VB coding). If the line is in the middle of the document,
you need to insert two section breaks, one before and one after the line
(Insert > Break - select Continuous if you want to prevent page breaks).

To protect the section that contains the line, do this:
1. Select Tools > Protect Document to open the Protect Document task pane.
2. Check the check box below Editing restrictions.
3. In the field below the check box, select "Filling in Forms" (even though
your document is not a form).
4. Since your document has more than one section, a "Select sections" option
appears. Click it to open the "Section Protection" dialog box. Make sure to
select only the section that includes the line you want to protect and click
OK.
Now you can turn on protection and only the selected section (with the line)
will be protected.

The description above can be used with Word 2003. In case of an older
version, you may not be able to protect only part of a document.

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
 
Sweet! Thanks! Though my customers may have word 2000... I'll just have to
say them to not to delete that line. :)

--Jar
 
Forms protection (including leaving sections unprotected) is supported in
Word 2000, too, so your customers shouldn't run into any trouble.

--
Stefan Blom
Microsoft Word MVP


in message
 

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

Back
Top