?
Solved

Section of word document as read only ?

Posted on 2006-11-10
14
Medium Priority
?
3,133 Views
Last Modified: 2008-08-22
I would like to be able to 'lock' parts of a word document.  Eg have a table and prevent the user modifying/deleting the contents of *SOME* cells in the table.  (Maybe an embedded field of some kind in the cell?)

The document will be created by automation and some information the end user is not allowed to modify or delete.

Is it possible? and if yes then how?  


BTW Having an embedded excel sheet is NOT an option.
0
Comment
Question by:AndyAinscow
  • 8
  • 4
  • 2
14 Comments
 
LVL 22

Expert Comment

by:Dreamboat
ID: 17915181
Very difficult to lock PARTS of a table, but certainly not parts of a document. Here's my article that explains how:
http://www.officearticles.com/word/protecting_parts_of_a_document_in_microsoft_word.htm
0
 
LVL 45

Author Comment

by:AndyAinscow
ID: 17915249
Thanks, I've had a quick look at the link.  It doesn't look suitable.  Unless I misunderstand it only works on 'horizontal stripes' that are the complete width of the document.

eg.
Table with 3 columns and 2 rows.
I might want to lock row 1, column 3 then row 2 columns 2 and 3
0
 
LVL 22

Accepted Solution

by:
Dreamboat earned 2000 total points
ID: 17915266
0
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 
LVL 45

Author Comment

by:AndyAinscow
ID: 17915300
I'll have to study it.
0
 
LVL 22

Expert Comment

by:Dreamboat
ID: 17915333
Sorry...should have said....
You can put form fields into some of those table cells where you want users to have access.
Unfortunately, document protection of ANY section(s) disables lots of formatting, etc. You may be better off looking into VBA Userforms to pop up and enter data for the user into the appropriate areas. Not sure.
0
 
LVL 45

Author Comment

by:AndyAinscow
ID: 17915392
It's for report generation.  Currently it is an Access report but there are too many requirements to modify how it looks now - so the thought of automating word and protecting the 'critical' information but allowing the user to modify the less important textual/formatting when required.  (word/line breaks, highlight a phrase....)
0
 
LVL 45

Author Comment

by:AndyAinscow
ID: 17915410
ps - I should have said, Word 2003/XP
0
 
LVL 21

Expert Comment

by:Eric Fletcher
ID: 17916066
You could "cover" the parts you want to prevent users from inadvertently changing: insert a small image (a 1x1 pixel white GIF would do) and use Format Picture to place it in front of text, then use the Crop handles to extend the picture corners out over the table you want to cover. Now the table will be visible through the negatively-cropped image, and if a user clicks within it, they will be selecting the picture and not content.

Note that this approach would reduce indadvertent edits but won't stop someone from getting at the content if they really want to.

There may be a way to make the object into a button that would run code to pop up a warning dialog when a user clicked on it but I haven't tried doing that.
0
 
LVL 45

Author Comment

by:AndyAinscow
ID: 17916261
Nice thought - it could be worth a try.
0
 
LVL 45

Author Comment

by:AndyAinscow
ID: 17916501
Eric - do you know if one can stop the user resizing/deleting the picture.  (I thought that click, delete and the protection is away.  If the user wanted to modify the cell contents then they would first try clicking onto it.)
0
 
LVL 21

Expert Comment

by:Eric Fletcher
ID: 17916769
Not readily... that's why I cautioned that it would only be an alert to a user.

While it would be nice to be able to assume users can actually think before acting, I realize that this is usually only a dream. Dreamboat's suggestion of using forms will offer more protection against changes from users who don't/can't read instructions, but nothing is really completely foolproof IMHO. Of course you can always do a document compare to be able to inspect all differences between an original and what you get back, but that can be a lot of work...

If you could set it up like a button in Excel (so you could attach code to run if it were clicked), you could perhaps prevent them from deleting the image object, but that is beyond my expertise I'm afraid. Perhaps others reading this question could suggest a method? (Or you could post a new question asking for the "how to" more specifically.)
0
 
LVL 45

Author Comment

by:AndyAinscow
ID: 17916833
Thanks.
0
 
LVL 45

Author Comment

by:AndyAinscow
ID: 17936709
Thanks - using forms should work
0
 
LVL 22

Expert Comment

by:Dreamboat
ID: 17948798
Thanks, Andy. :)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question