Protect validated columns

excel5111987

New Member
Joined
Feb 20, 2010
Messages
8
Hi,

In a excel2007 worksheet I have applied validation in 4-5 columns. And I want to protect only those 4-5 column but not the whole sheet.

I have tried these, but it is not working

1) selected single column, formate menue, uncheck hide and protect.
2) Selected single column again , formate menue, check hide and protect, review and protect sheet,

But doing so, protects my whole sheet rather than protecting selected columns.

Please help
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try this.

Select Columns (D:E) and then use Ctrl + 1 (Format Cells) then select protection Tab then deselect Locked, then click OK, keep highlighted then select Review and Protect Sheet.

If this doesn't work you must have something else going on.
 
Upvote 0
Dear Sir,

What exactly I want is that Allow users to select list form validation columns which is password protected.

Say I have Column A in which I have applied validation with few list. What they do, they remove my validation everyday. That is way I have protected those column, but now they even can not select list from validation.

So, I have protected those columns. Now :confused:I need the way so that they can not remove validation but they can only select list from validation.
 
Upvote 0
Take a look at this link, it gives you code which has to go into the Workbook Event which will stop any row, column from being deleted.

http://www.vbaexpress.com/kb/getarticle.php?kb_id=660

There is an example workbook which you can explore.

Code used is in the Workbook Events, so you can test it on a blank workbook and use Alt + F11 then double click on the left where it states thisWorkBook and paste in the code

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If ((Target.Address = Target.EntireRow.Address Or _
Target.Address = Target.EntireColumn.Address)) Then

With Application
.EnableEvents = False
.Undo
MsgBox "No deleting rows or columns", 16
.EnableEvents = True
End With

Else

Exit Sub

End If
End Sub
 
Upvote 0
Take a look at this link, it gives you code which has to go into the Workbook Event which will stop any row, column from being deleted.
That wouldn't stop the user from wrecking the Data Validation by pasting into the data-validated cell.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top