Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dim dim is offline
external usenet poster
 
Posts: 123
Default Endless Loop - Shortcut Key To Stop Code?

Hi folks....this is a bit embarrasing!

I created a crappy bit of code by accident in my auto-open macro, and can't
get into my program to delete it!

Can someone tell me the key combination to stop running code while its
executing?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Endless Loop - Shortcut Key To Stop Code?

Escape key or if that doesn't work Ctrl + Pause/Break.

RBS


"dim" wrote in message
...
Hi folks....this is a bit embarrasing!

I created a crappy bit of code by accident in my auto-open macro, and
can't
get into my program to delete it!

Can someone tell me the key combination to stop running code while its
executing?

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default Endless Loop - Shortcut Key To Stop Code?

Hi

hold shift pressed when you open the file.


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"dim" wrote:

Hi folks....this is a bit embarrasing!

I created a crappy bit of code by accident in my auto-open macro, and can't
get into my program to delete it!

Can someone tell me the key combination to stop running code while its
executing?

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Endless Loop - Shortcut Key To Stop Code?


as always, there're a few ways to accomplish this.
wigi gave you one,

you can also set the macro security to very high, then open your file.

or, start excel in safe mode, this is an example for excel 11

"C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" /s
--


Gary


"dim" wrote in message
...
Hi folks....this is a bit embarrasing!

I created a crappy bit of code by accident in my auto-open macro, and can't
get into my program to delete it!

Can someone tell me the key combination to stop running code while its
executing?

Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.programming
dim dim is offline
external usenet poster
 
Posts: 123
Default Endless Loop - Shortcut Key To Stop Code?

Thanks folks,

Holding Shift worked a charm.

Setting Macro security seems like a really obvious solution...I should ahve
thought of that!

L8rs.


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Endless Loop - Shortcut Key To Stop Code?

OK, misread the question.

RBS

"dim" wrote in message
...
Thanks folks,

Holding Shift worked a charm.

Setting Macro security seems like a really obvious solution...I should
ahve
thought of that!

L8rs.


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
Getting endless loop on DoUntil excelnut1954 Excel Programming 3 October 11th 06 09:18 PM
Endless loop freddie mac Excel Programming 2 August 1st 06 03:19 PM
endless loop help John Excel Programming 1 October 26th 05 04:51 PM
Endless loop? John Excel Programming 24 August 2nd 05 06:41 PM
Interrupting an endless loop davegb Excel Programming 3 March 17th 05 05:06 PM


All times are GMT +1. The time now is 02:59 AM.

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

About Us

"It's about Microsoft Excel"