WebApr 5, 2024 · I'm trying to allow users to both filter and sort protected sheets with VBA. The code I currently have is working for the filtering part of it but the sorting does not. This is my full code for that section, the protect part of it is on the bottom: VBA Code: Private Sub SubmitButton_Click() 'Sheets ("IDN").Activate THIS LINE MESSES UP THE VALUE ... WebSelect the worksheet that you want to protect. On the Review tab, in the Changes group, click Allow Users to Edit Ranges. This command is available only when the worksheet …
Allow selecting but not editing a chart and slicers in a protected ...
WebNov 21, 2016 · Sub sortColumn () 'Unprotect sheet (Change "password" or remove it if you don't have any) ActiveSheet.Unprotect Password:="password" 'Use Sort function (you can use the macro recorder to find the right code for other sorting/filter-options) 'Adapt Sheetname and Range of table to your needs Sheets (1).AutoFilter.Sort.SortFields.Clear … WebJun 8, 2024 · Private Sub Workbook_Open () For Each ws In Sheets With ws .Unprotect Password:="password" .Protect Password:="password", UserInterfaceOnly:=True .EnableOutlining = True .EnableAutoFilter = True End With Next ws End Sub. I've tried EnableSort = True, EnableSorting = True but neither works. The code is within the Visual … coronation daily unit trust prices
Excel: Enabling Sorting in a protected Sheet - Microsoft …
WebApr 23, 2014 · Re: Disable sorting but allow filtering. Don't enter it in a module or a normal subroutine (sub). Go into your VBA editor (Ctrl+F11), Then click 'this workbook, (if you want it applied to whole workbook). In the drop down boxes above the code area, find 'WORKBOOK' and 'OPEN'. Drop the two lines of code in there. WebJun 21, 2016 · This way you use macros when creating the workbook, but the workbook itself does not contain VBA. If you create a separate sheet for a chart, you can protect it separately with a password: Sub macro () Dim newChart As Chart Range ("C9:C11").Select Set newChart = ActiveChart With newChart .Protect Password:="pwd", … WebJun 6, 2024 · Step 1: On the toolbar select the review option. Step 2: A protect sheet dialog box will open. Select the appropriate option. Step 3: Checked the box that you want the user to access the particular cells. Password to unprotected cells – Allows only those users who know the valid password to unprotect the worksheet and can make changes. Allow all … coronation ddsb