Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI Friends,

Can We delete a row in a protected work sheet?

I put DeleteRows = false in SheetProtection class attributes then I am able to find option for deleting the row by giving right click on excel row.

Still, I can't able to delete. It is showing the message that the sheet is protected so first unprotect it and delete the row.

Please help me in this.
Posted
Updated 23-Nov-12 6:00am
v2

1 solution

In your protect method put AllowDeletingRows = true.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900