Deleting rows in a protected sheet

sapper

New Member
Joined
Aug 29, 2012
Messages
33
This might be a silly question, but is there a way to delete a row in a protected sheet for someone who is using the sheet without the password? I can't find anything online.

Any help would be appreciated.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
You could create VBA code that would temporarily unprotect the sheet, delete the row, and re-protect the sheet.
The VBA code would have the password in it, so you would need to be sure to hide the VBA code (so they can run it, but not view it).
 
Upvote 0
Unfortunately I don't know how to use VBA code. The issue is I have an excel matrix with formulas that I have locked and hidden. I want others to be able to update and delete rows that are no longer needed. I am just not sure how to protect the formulas without password protecting the entire worksheet.
 
Upvote 0
Thank you. I will have to figure out how to use VBA and this may just work. Thanks for the assistance.
 
Upvote 0
There really shouldn't be much to it. Just copy and paste that VBA code from the other link to a new VBA module in your workbook (adjusting your password).
Then just place your cursor on the row you want to delete, and run the macro.
See here for instructions on how to do those things: https://www.ablebits.com/office-addins-blog/2013/12/06/add-run-vba-macro-excel/

You can also run the VBA code from buttons on keyboard shortcuts, if you want to do that.

See here for how to hide your VBA code: https://stackoverflow.com/questions/9425461/how-to-hide-code-in-vba-applications
 
Upvote 0
You are welcome!
Glad I was able to help.:)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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