Does anyone know if it is possible to sort data in a protected Excel worksheet?
I have created a sheet which has a command button which when clicked runs a macro to automatically sort the data into the correct order (it's a league table.) Everything works fine until I lock the worksheet (to prevent accidental changes to the formulas etc.) and then the sort button returns a runtime error. I have tried unlocking the range but this doesn't help and I've now noticed that the sort option on the Data menu is greyed out when the sheet is protected. When the sheer is unprotected the button works fine again. Does anyone know a way around this?
Thanks,
Fletch
I have created a sheet which has a command button which when clicked runs a macro to automatically sort the data into the correct order (it's a league table.) Everything works fine until I lock the worksheet (to prevent accidental changes to the formulas etc.) and then the sort button returns a runtime error. I have tried unlocking the range but this doesn't help and I've now noticed that the sort option on the Data menu is greyed out when the sheet is protected. When the sheer is unprotected the button works fine again. Does anyone know a way around this?
Thanks,
Fletch