A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Interrupt running macro?



 
 
Thread Tools Display Modes
  #1  
Old November 19th, 2009, 03:29 PM posted to microsoft.public.powerpoint
caten
external usenet poster
 
Posts: 53
Default Interrupt running macro?

In the VB Editor, when I'm testing a macro, I can press the BREAK key to
interrupt and stop the macro. Is there a way to interrupt a macro while it's
running from an add-in? (I tried pressing the BREAK key, but that didn't
work. Incidentally, I tried Ctrl+C, from DOS days, but that didn't work
either.)

I found this example: http://www.pptfaq.com/FAQ00972.htm, but I'm not sure
how to get my event handler to send a message back to the active/running
macro and tell it to Exit Sub.

If there is another better or easier way to accomplish this, I'm open to any
suggestions.
  #2  
Old November 19th, 2009, 07:00 PM posted to microsoft.public.powerpoint
Chirag
external usenet poster
 
Posts: 595
Default Interrupt running macro?

The "Stop" statement causes a break in the macro execution. It works as if
you had placed a breakpoint at that line. Once interrupted at the "Stop"
statement, you can press F5 to resume from that line onwards.

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html

"caten" wrote in message
...
In the VB Editor, when I'm testing a macro, I can press the BREAK key to
interrupt and stop the macro. Is there a way to interrupt a macro while
it's
running from an add-in? (I tried pressing the BREAK key, but that didn't
work. Incidentally, I tried Ctrl+C, from DOS days, but that didn't work
either.)

I found this example: http://www.pptfaq.com/FAQ00972.htm, but I'm not sure
how to get my event handler to send a message back to the active/running
macro and tell it to Exit Sub.

If there is another better or easier way to accomplish this, I'm open to
any
suggestions.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:57 PM.


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