enable sorting on protected sheet vba

Rayne
Rayne used Ask the Experts™
on
Hello

mySheet.Protect Password:=myPassword, DrawingObjects:=True, Contents:=True, Scenarios:=True, AllowFormattingColumns:=True, AllowFiltering:=True, UserInterfaceOnly:=True, AllowSorting:=True
I added the allow sorting but still….
still on protection, the sorting is giving error – see attached
willNotSort.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
what vba code i need to make the sorting work after protection?
Older than dirt
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
mySheet.Protect Password:=myPassword, DrawingObjects:=True, Contents:=True, Scenarios:=True, AllowFormattingColumns:=True, AllowFiltering:=True, UserInterfaceOnly:=True, AllowSorting:=True, UserInterfaceOnly:=True
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
Rayne, why the "B" grade? Please see this EE article on grading which says
A "B" grade means the solution given lacked some information or required you to do a good amount of extra work to resolve the problem. When closing the question, the asker should explain why a B grade was awarded.
Please consider Requesting Attention so that a moderator can help you change the grade.

Author

Commented:
Sure I will do that
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial