Vba Protect Sheet But Allow Grouping. You can protect a sheet to be editable by VBA-only, but it appears the "UserInterfaceOnly" option can only be set when calling "Worksheet. Unfortunately when password protecting your worksheets, there is no option to check that will enable you to allow users to use the expand/collapse..i use a VBA to allow grouping and ungrouping in protected sheet but I realise I cannot sort (Although sort function has been ticked when protecting sheet).
By default set to FALSE. [VBA]Public Sub ProtectSheet(sWhichSheet) ' This Macro protects the Sheet If Sheets I get an error message that to group/ungroup i need to unprotect my sheet. Protect cells, to specifically allow or disallow changes to key cells or formulas in your Excel spreadsheets. Also the code to protect and unprotect all my sheets seem to have a problem, because the sheets are not protected.
Verify that the CAPSLOCK key is not activated and that you are using the correct case.
This is a small VBA code to help you in dealing with Protecting and UnProtecting the WorkSheet using Excel Macro.
Protect cells, to specifically allow or disallow changes to key cells or formulas in your Excel spreadsheets. You can lock cells by selecting them, and opening the Protection tab of the Cell. If omitted then WorkSheet will be locked without a password and.