Allowing "Sort" in a Protected Worksheet - Microsoft Community
                Office                /                        Excel                    /                        Microsoft Office Programming                
 
  
you can protect sheet in code follows:
worksheets("mysheet").protect allowsorting:=true, userinterfaceonly:=true
specifying true userinterface argument allow manipulate worksheet in vba code though protected. example, sorting worksheet.
you must include version of the above line in workbook_open event procedure in thisworkbook module, userinterfaceonly:=true not saved workbook.
                Office                /                        Excel                    /                        Microsoft Office Programming                
 
  
Comments
Post a Comment