Stop a 'worksheet_change' or worksheet_calculate from running

前端 未结 1 1444
清酒与你
清酒与你 2021-01-24 19:11

I have a worksheet heavily laden with code. There are \'worksheet_change\' and \'worksheet_calculate\' functions amongst that code. during certain procedures this code runs unn

1条回答
  •  孤街浪徒
    2021-01-24 19:42

    Yes, just set Application.EnableEvents to FALSE.

    Don't forget to turn it ON back after your processing is completed.

    0 讨论(0)
提交回复
热议问题