When I execute the following macro without a button, The shapes will delete beautifully. When I execute the macro with a button, the shapes are selected, but they are not deleted. I don't understand why. Is there something wrong with the code? Thanks in advance for your help!
Sub DeleteAllObjects()
Dim ws As Worksheet
Set ws = Worksheets("Flowchart")
ws.Shapes.SelectAll
Selection.Delete
End Sub