Bloomberg stops VBA Application.Ontime

ε祈祈猫儿з 提交于 2021-01-28 07:57:10

问题


I have the following VBA subroutine which is calls itself every second:

Public Sub AllTheTime()
    iTimerSet = Now + TimeValue("00:00:01")
    Call runMyFunction
    Application.OnTime iTimerSet, "AllTheTime"
End Sub

This script is running perfectly: It is recalling itself every second and calculating some stuff.

But when I install the Bloomberg Office Add-On (Bloomberg Ribbon) it is no longer working: It is running exactly one time then it is stopped. I checked this with Debug.Print. It seems that Bloomberg is stopping the "Application.OnTime" method.

Do you have any ideas what causes this behaviour?

来源:https://stackoverflow.com/questions/64124682/bloomberg-stops-vba-application-ontime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!