How to make safe API Timers in VBA?

前端 未结 6 982
情话喂你
情话喂你 2020-12-01 21:46

I read in various places that API timers are risky in VBA, that if you edit a cell while the timer is running it will crash Excel.

This code from http://optionexplic

6条回答
  •  囚心锁ツ
    2020-12-01 22:24

    I have also been faced with the fact that Excel crashes while entering a value and found this contribution. Great! My problem was solved as soon I added this line:

    On Error Resume Next 
    

    to "TimerProc".

提交回复
热议问题