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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Maybe in your code you have
application.enableevents=false

You have to reverse it at the end of your macro
application.enableevents=true
 
Upvote 0
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)
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,369
Members
449,080
Latest member
Armadillos

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
Back
Top