Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Per and Jim,
Thanks both for testing. I was kind of expecting one or two might replicate, perhaps it's only in my systems. Actually no, the issue arose from someone else experiencing similar in this ng several months ago. Jim, My rule #3: don't run long loops without a DoEvents inside the loop. Really? Well an occasional DoEvents indeed prevents the problem (if done in time), as does intermittent re-calc. As it happens MS have also suggested DoEvents. What I find curious is if anything I would expect the scenario more likely to occur with automatic calculation rather than manual. However I don't think DoEvents is a good idea at all, at least not without knowing the potential consequenses. Say the routine was called from a button, user presses the button another 5 times whilst running between subseqent Doevents (people do that kind of thing), when done the macro will re-run another 5 times. Or maybe something else will get triggered. Also, if DoEvents is called in every loop, as some do, it'll significantly slow things. Rules #1 & 2, dare I ask ? :-) Regards, Peter T |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA code to update sheets in manual calc workbook | Excel Programming | |||
Calc = Manual & Do Not Calc b/4 SAVE | Excel Discussion (Misc queries) | |||
Data entry too slow even with calc set to manual | Excel Discussion (Misc queries) | |||
Open CSV causes calculation in manual calc mode | Excel Discussion (Misc queries) | |||
Automatic Manual Calc When Opening!! | Excel Programming |