79089081

Date: 2024-10-15 08:33:30
Score: 1
Natty:
Report link
Sub ClearAllNamedRanges()
Dim x
   Application.ScreenUpdating = False
   On Error Resume Next
   For Each x In ThisWorkbook.Names
      Application.Evaluate(x.RefersTo).ClearContents
   Next
   MsgBox "All named ranges cleared."
End Sub
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mapomme