Aug 20, 2020 Start Excel, open your workbook, and then select the range that you want to allow access to. In Microsoft Office Excel 2007, click the Review tab, and then click Allow Users to Edit Ranges in the Changes group. In Microsoft Office Excel 2003 or in Microsoft Excel 2002, on the Tools menu, click Protection, and then click Allow Users to Edit Ranges. An explanation and demonstration on how to restrict editing in Excel files to certain users. A quick and easy way to protect cells using the 'Allow users to. In the Data Validation window, on the “Settings” tab, click the “Allow” dropdown menu. Here, you can set a specific type of input to allow for your selected cells. For our expense report, we’re going to insist that users put in a number with two decimal values, so we would select the “Decimal” option. In the Allow all users of this worksheet to list, select the elements that you want users to be able to change (see Protect Excel spreadsheet options). In the Password to unprotect sheet box, type a password for the sheet, click OK, and then retype the password to confirm it. Note: The password is optional. If you don't supply a password, then any user can unprotect the sheet. What if I want to disable a range like following code: With Worksheets(1).Range(.Cells(1, 1),.Cells(24, 24)).Locked = True End With Could you advise how can I disable user to edit the specified cells? Thanks, Michael.
Office 365 ProPlus is being renamed to Microsoft 365 Apps for enterprise. For more information about this change, read this blog post.
Summary
In Microsoft Excel 2002 and in later versions of Excel, you can now use passwords to protect specific ranges in your worksheets. This is a change from earlier versions of Excel, in which one password applies to the entire worksheet, which might have several protected ranges. In addition, if you use Windows 2000, you can apply group-level passwords and user-level passwords to different ranges.
The features in Microsoft Excel that are related to hiding data and protecting worksheets and workbooks with passwords are not intended to be mechanisms for securing data or protecting confidential information in Excel. You can use these features to present information more clearly by hiding data or formulas that might confuse some users. These features also help prevent other users from making accidental changes to data.
Excel does not encrypt data that is hidden or locked in a workbook. With enough time, users can obtain and modify all the data in a workbook, as long as they have access to it. To help prevent modification of data and to help protect confidential information, limit access to any Excel files that contain such information by storing them in locations available only to authorized users.
Note
This article describes how to enable specific collaboration scenarios to function correctly in collaboration environments that do not include users who have malicious intent. You cannot enable strong encryption for a file by using password protection. To protect your document or file from a user who has malicious intent, you can restrict permission by using Information Rights Management (IRM).
More Information
How to apply different passwords
To apply different passwords to two ranges in a worksheet, follow these steps:
Start Excel, and then open a blank workbook.
On the Tools menu, point to Protection, and then click Allow Users to Edit Ranges.
Note
In Microsoft Office Excel 2007, click Allow Users to Edit Ranges in the Changes group on the Review tab.
In the Allow Users to Edit Ranges dialog box, click New.
In the New Range dialog box, click the Collapse Dialog button. Select the range B2:B6, and then click the Collapse Dialog button again.
In the Range password box, type rangeone, click OK, then type it again in the Confirm Password dialog box, and then click OK.
Repeat steps 3 through 5, selecting the range D2:D6 and typing rangetwoas the password for that range.
In the Allow Users to Edit Ranges dialog box, click Protect sheet. In the Password to unprotect sheet box, type ranger, and then click OK. When prompted, retype the password, and then click OK.
Select cell B3, and then start to type Dataone.
Note
When you type D, the Unlock Range dialog box appears.
Type rangeone in the Enter the password to change this cell box, and then click OK.
You can now enter data in cell B3 and in any other cell in the range B2:B6, but you cannot enter data in any of the cells D2:D6 without first providing the correct password for that range.
The range that you protect with a password does not have to be made of adjacent cells. If you want the ranges B2:B6 and D2:D6 to share a password, you can select B2:B6 as described in step 4 earlier in this article, type a comma in the New Range dialog box, and then select the range D2:D6 before you assign the password.
When you apply different passwords to separate ranges in this way, a range that has been unlocked remains unlocked until the workbook is closed. When you unlock another range, you do not relock the first range. Likewise, when you save a workbook, you do not relock a range.
You can use existing range names to identify cells that are to be protected with passwords, but if you do, Excel converts any relative references in the existing name definitions to absolute references. Because this may not give you the results you intended, it is better to use the Collapse Dialog button to select the cells, as described earlier in this article.
How to apply group-level passwords and user-level passwords
If you use Windows 2000 (but not other versions of Windows), you can assign different permissions to various individual users or groups of users. When you do this, permitted users can edit the protected ranges without needing to type passwords, and other users can still edit the ranges as long as they can supply the correct password.
To apply group-level protection to a worksheet, follow these steps:
Start Excel, and then open a blank worksheet.
On the Tools menu, point to Protection, and then click Allow Users to Edit Ranges.
Note
If you are running Excel 2007, click Allow Users to Edit Ranges in the Changes group on the Review menu.
In the Allow Users to Edit Ranges dialog box, click New.
In the New Range dialog box, click Collapse Dialog, select the range B2:B6, and then click Collapse Dialog again.
In the Range password box, type rangeone, and then click OK twice. When prompted, retype the password.
Repeat steps 3 through 5, selecting the range D2:D6 and typing rangetwo as the password for that range.
In the Allow Users to Edit Ranges dialog box, click Permissions, and then click Add in the Permissions for Range2 dialog box.
In the Select Users or Groups dialog box, type Everyone, and then click OK.
Click OK in the Permissions for Range2 dialog box.
In theAllow Users to Edit Ranges dialog box, click Protect sheet, type ranger in the Password to unprotect sheet box, and then click OK twice. When prompted, retype the password.
Select cell B3, and then start to type Dataone. A password is still required. Click Cancel in the Unlock Range dialog box.
Select cell D3, and then type Datatwo.
No password is required.
Note
You must use Windows 2000 in order to assign permissions to groups or individuals as described earlier in this article, but after you have done so, those permissions are recognized when the worksheets are edited on computers that use Microsoft Windows NT. Windows NT does not enable you to assign or modify the permissions.
If you apply group permissions or user permissions, and then open the workbook in Excel 2002 on a Microsoft Windows Millennium Edition-based computer or Microsoft Windows 98-based computer, the group permissions or user permissions are ignored, but different passwords for different ranges are recognized.
How to change passwords
To change the password for a range, follow these steps:
Start Excel, and then open the workbook.
On the Tools menu, point to Protection, and then click Unprotect Sheet.
Note
In Excel 2007, click Unprotect Sheet in the Changes group on the Review tab.
If prompted type the worksheet password, and then click OK.
On the Tools menu, point to Protection, and then click Allow Users to Edit Ranges.
Note
In Excel 2007, click Allow Users to Edit Ranges in the Changes group on the Review tab.
Click a range in the list, and then click Modify.
Click Password.
Type the new password in the New password box, and then retype the new password in the Confirm new password box.
Click OK, and then click OK.
To change the password for another range, repeat steps 3 through 6. Otherwise, click Protect Sheet.
Type the worksheet password in the Password to unprotect sheet box.
Click OK, retype the worksheet password to confirm it, and then click OK.
Important
Note these aspects of applying passwords and group-level permissions to specific ranges:
Excel 2003 runs only on Microsoft Windows XP and on Microsoft Windows 2000.
When a workbook with protected ranges is opened in Excel 2002 on a Windows XP-based computer, on a Windows 2000-based computer, or on a Microsoft Windows NT-based computer, the worksheet range and group protection are the same as they are in Excel 2003.
When a workbook with protected ranges is opened in Excel 2002 on a Microsoft Windows Millennium Edition-based computer or on a Microsoft Windows 98-based computer, ranges with user-level and group-level permissions require the range password.
More information
For more information about the Microsoft Office features that help enable collaboration, see Description of Office features that are intended to enable collaboration and that are not intended to increase security.
1. On the Review tab. in the Changes group,click Allow Users to Edit Ranges:
Note: This command is available only when the spreadsheet is not protected.
2. Do one of the following:
To modify an existing editable range, select it in the Ranges unlocked by a password when sheetis protected box, and then click Modify.
To delete an editable range, select it in the Ranges unlocked by a password when sheet isprotected box, and then click Delete.
To add a new editable range, follow next steps:
1. Click New to open dialog box:
2. In the Title box, type the name for therange that you want to unlock.
3. In the Refers to cells box, type anequal sign (=), and then type the reference of the range that you want to unlock. You can also click theCollapse Dialog button, select the range in the spreadsheet, and then click the CollapseDialog button again to return to the dialog box.
4. In the Range password box, type apassword that allows access to the range. The password is optional. If you don't supply a password, thenany user can edit the cells.
Allow Users To Edit Ranges In Excel For Mac Pdf
5. Click Permissions to open dialog box:
6. Add users that you want to be able to edit theranges or remove them, and then click OK three times.
3. After all changes, in the Allow Users to EditRanges dialog box, click the Protect Sheet.. button to open the Protect Sheetdialog box:
4. In the Allow all users of this worksheet to list,select the elements that you want users to be able to change (see Protect Excel spreadsheetoptions).
Allow Users To Edit Ranges In Excel For Mac Free
5. In the Password to unprotect sheet box, type apassword for the sheet, click OK, and then retype the password to confirm it.
Excel Macro Allow Users To Edit Ranges
Note: The password is optional. If you don't supply a password, then any user canunprotect the sheet and change the protected elements. Make sure that you choose a password that is easyto remember, because if you lose the password, you cannot gain access to the protected elements on the spreadsheet.