Worksheet_Change Problem

WernerLouw

Board Regular
Joined
Dec 9, 2004
Messages
93
Hi,

I have various wbk's and sheets running with a set of macros, One macro opens the next sheet which then updates data closes the sheets etc. I then have a worksheet_change sub, which has worked fine in the past... but every now and then it doesn't...

It seems that the pc's memory is exhausted... The macro just does not want to run. I then have to close everything and restart excell to get the macro to work, but this does not always help the forst time... All the other marcos do run however while this is happening.


Any help would be greatly appreciated...
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Chitosunday

Well-known Member
Joined
Jul 14, 2003
Messages
1,017
Maybe in your code you have
application.enableevents=false

You have to reverse it at the end of your macro
application.enableevents=true
 

WernerLouw

Board Regular
Joined
Dec 9, 2004
Messages
93
I did re-enable the events at the end of the sub, what i did not recon with is the fact that i "sometimes" step out of the sub before i re-enable the events...

What I dont understand though is the fact that the other macros, such as my calender control, still worked fine... but it would not update the data, based onthe calender control.

Thanks for the hint anyway...


(y)
 

Chitosunday

Well-known Member
Joined
Jul 14, 2003
Messages
1,017
enableevents will just disable events like change of cell data (change_events), opening of files(workbook_open) but your other macro will work for those triggered manually like if you have short-cut key alt-A, or clicking tools, macro , the sub title or branching to other macro.
 

Forum statistics

Threads
1,147,508
Messages
5,741,572
Members
423,668
Latest member
Audorin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top