Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/100936

From BetaArchive Wiki
Knowledge Base


Article ID: 100936

Article Last Modified on 8/15/2003



APPLIES TO

  • Microsoft Excel 97 Standard Edition
  • Microsoft Excel 98 for Macintosh



This article was previously published under Q100936

SUMMARY

By default, all cells except those containing formulas can be edited in a data form. However, if you want to keep cells that do not contain formulas from being edited, you can protect these cells on the worksheet. Protecting these cells will prevent the edit box for the protected column from being displayed in the data form.

This situation applies both to built-in data forms and custom data forms.

MORE INFORMATION

Example

If you wanted to prevent someone from changing the salary field in the following database

    A              B              C                D

   ------------------------------------------------------
   Name            Title          Hire Date        Salary
   John            Manager        6/8/92           $50,000
                



lock column D on the spreadsheet and protect the document. When you protect the document this way, no one can add new data or change existing data in this column until you unlock the column.

To lock the column in versions of Microsoft Excel that are earlier than version 5.0, do the following:

  1. Select Columns A, B, and C.
  2. From the Format menu, choose Cell Protection, clear the Locked check box, and choose OK.
  3. From the Options menu, choose Protect Document, and choose OK.

To lock the column in Microsoft Excel 5.0 and later, do the following:

  1. Select Columns A, B, and C.
  2. From the Format menu, choose Cells.
  3. Select the Protection tab, clear the Locked check box, and choose OK.
  4. From the Tools menu, choose Protection. Select Protect Sheet, then choose OK.

NOTE: You will not be able to add new records or delete existing records while in protect mode. This procedure is only useful for editing existing records.


Additional query words: howto XL

Keywords: kbinfo KB100936