Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default CANCEL EVENTS

Hi I am running a macro that causes another macro to occur. This causes an
error. What I would like to do is run the macro while leaving all other
macros disables until the current macro is finished executing. Any help
would be appreciated.
--
Thanks!
Shane W
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default CANCEL EVENTS

Application.enableevents = false
Application.enableevents = true

You should use an error handler with this type of code to ensure that in the
case of crash the events are turned back on...
--
HTH...

Jim Thomlinson


"whylite" wrote:

Hi I am running a macro that causes another macro to occur. This causes an
error. What I would like to do is run the macro while leaving all other
macros disables until the current macro is finished executing. Any help
would be appreciated.
--
Thanks!
Shane W

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default CANCEL EVENTS

Ya I tried this coding and my macro still causing the program to crash. I
have a lot of cells that are being populated some with combo boxes. I
managed to get the data to populate but the combo boxes remain blank. I am
thinking that when the enable events gets turned is when excel crashes on me.

--
Thanks!
Shane W


"Jim Thomlinson" wrote:

Application.enableevents = false
Application.enableevents = true

You should use an error handler with this type of code to ensure that in the
case of crash the events are turned back on...
--
HTH...

Jim Thomlinson


"whylite" wrote:

Hi I am running a macro that causes another macro to occur. This causes an
error. What I would like to do is run the macro while leaving all other
macros disables until the current macro is finished executing. Any help
would be appreciated.
--
Thanks!
Shane W

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
Workbook_BeforeClose(Cancel As Boolean) - Cancel won't work gpmichal Setting up and Configuration of Excel 1 May 12th 09 02:33 AM
Cancel button to cancel the whole macro excelnut1954 Excel Programming 3 January 17th 06 08:27 PM
Before print, cancel print and cancel copy/paste Claus[_3_] Excel Programming 5 August 26th 05 11:13 AM
Cancel Macro is user selects 'cancel' at save menu Mark Excel Programming 1 April 6th 05 05:45 PM
Cancel Button Matt Excel Programming 3 February 3rd 04 11:23 PM


All times are GMT +1. The time now is 04:07 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"