Delete AllowEditeRange by VBA command
Solved/Closed
Related:
- Delete AllowEditeRange by VBA command
- Cs 1.6 money command - Guide
- Vba case like - Guide
- Change computer name command line - Guide
- Net send command - Guide
- Csgo speed command - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Apr 21, 2011 at 09:26 AM
Apr 21, 2011 at 09:26 AM
Hi Celina,
Added this codeline: ws.select
Now your code looks like:
Best regards,
Trowa
Added this codeline: ws.select
Now your code looks like:
Sub test() Dim WS As Worksheet Dim aer As AllowEditRange For Each WS In Worksheets WS.Select For Each aer In ActiveSheet.Protection.AllowEditRanges aer.Delete Next aer Next WS End Sub
Best regards,
Trowa
Apr 26, 2011 at 07:00 AM
Thank you very much, it works perfect.
Best regards,
Celina