Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can I programmatically simulate clicking the 'stop macro' button in the VBE?

For me, I needed to put the DoEvents after the Execute command.

--
Regards,
Tom Ogilvy


"Michel Pierron" wrote in message
...
Hi Alan;
You can try:

DoEvents
Application.VBE.CommandBars.FindControl(ID:=228).E xecute

MP

"Alan" a écrit dans le message de
...

Can I simulate the clicking of the stop button in the VB Editor using
VBA?

Thanks,

Alan.





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 214
Default Can I programmatically simulate clicking the 'stop macro' button in the VBE?

Yes Tom, you are right.
MP

"Tom Ogilvy" a écrit dans le message de
...
For me, I needed to put the DoEvents after the Execute command.

--
Regards,
Tom Ogilvy


"Michel Pierron" wrote in message
...
Hi Alan;
You can try:

DoEvents
Application.VBE.CommandBars.FindControl(ID:=228).E xecute

MP

"Alan" a écrit dans le message de
...

Can I simulate the clicking of the stop button in the VB Editor using
VBA?

Thanks,

Alan.






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 188
Default Can I programmatically simulate clicking the 'stop macro' button in the VBE?

"Michel Pierron" wrote in message
...

Yes Tom, you are right.
MP

"Tom Ogilvy" a écrit dans le message de
...
For me, I needed to put the DoEvents after the Execute command.

--
Regards,
Tom Ogilvy


"Michel Pierron" wrote in message
...
Hi Alan;
You can try:

DoEvents
Application.VBE.CommandBars.FindControl(ID:=228).E xecute

MP


Hi Michel,

That looks to be exactly what I need.

Thank you very much.

Regards,

Alan.




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
Using Macro to sort without clicking on macro button dd Excel Discussion (Misc queries) 3 May 3rd 07 06:00 PM
Start/Stop Macro Button Paul987 Excel Discussion (Misc queries) 1 July 10th 06 05:14 PM
Macro Record Stop Button Patrick Simonds Excel Discussion (Misc queries) 2 July 31st 05 06:11 PM
Programmatically Adding Controls (Macro) eg Button on A SpreadSheet Martin SChukrazy Excel Programming 0 March 7th 04 06:01 AM
how to add code programmatically to a macro for a button Tina Excel Programming 0 August 26th 03 03:30 AM


All times are GMT +1. The time now is 03:16 AM.

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"