Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Deleting sheets

Your code works fine here -assuming that the "Are you sure?" message is a sensible
response.

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Gary Adamson" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Deleting sheets

The only thing in the Knowledge base about this error is this

Can't Enter Break Mode" Stepping Through a Macro
http://support.microsoft.com/default...51&Product=xlw


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Harald Staff" wrote in message ...
Your code works fine here -assuming that the "Are you sure?" message is a sensible
response.

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Gary Adamson" wrote in message
...
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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
deleting sheets 2&3 doug53098 Excel Discussion (Misc queries) 2 July 7th 05 08:22 PM
deleting sheets KLP Excel Discussion (Misc queries) 3 January 14th 05 12:24 AM
Deleting duplicates across sheets p. 2 jimmy[_2_] Excel Programming 1 September 27th 03 03:57 PM
Deleting duplicates across sheets jimmy[_2_] Excel Programming 4 September 26th 03 08:08 PM
deleting sheets david Excel Programming 2 July 31st 03 01:02 AM


All times are GMT +1. The time now is 10:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"