Thread: Deleting sheets
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gary Adamson[_2_] Gary Adamson[_2_] is offline
external usenet poster
 
Posts: 4
Default Deleting sheets

When I try to run a macro to delete sheets in my workbook
I get an error saying "Can't enter break mode at this
time". How can I disable or keep this from ocurring?

ie:

Sub test()
Sheets(Sheets.Count).Delete
End Sub