Vba on unprotected sheet disable sort

bwoodson89

New Member
Joined
Jan 14, 2015
Messages
2
i need help. I have a table. Its only for data entry to log quotes. I can't protect sheet or new rows can't be added to table. Couldn't find a code that worked. I'm at a loss on how to lock or disable or gray out the a to z sort feature. I have locked my header row so If you highlight the entire row it grays out however if you select one cell on header it comes back and u can sort!!!! I'm so annoyed. I have disabled the right click option to prevent insert and delete or right clicking anywhere in workbook.this is fine.i like this. I JUST NEED TO ADD A CODE THAT DISABLES USER FROM SORTING SO I CAN MOVE ON WITH MY LIFE!! Please help.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
re: VBA ON UNPROTECTED SHEET DISABLE SORT

Have you tried
- select all cells and unlock them
(Right-click \ Format Cells \ Protection)
- now protect the sheet allowing user to do everything except Sort (leave only that box un-checked)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,559
Messages
6,114,302
Members
448,564
Latest member
ED38

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