Name
alloweditrange
.Delete( )
Synopsis
Removes an edit range from a worksheet. For example, the following code deletes all the edit ranges in a worksheet:
Set ws = ThisWorkbook.Sheets("Protection") For Each aer In ws.Protection.AllowEditRanges aer.Delete Next
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.