Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在制作一个屏幕自定义键盘,我想知道如何将所有点击事件发送到一个方法并让它根据控件的名称确定要做什么。这可能吗?
您可以将 On Click 行设置为函数的名称,例如 =MyFunction()
然后:
Function MyFunction() 'The button that was clicked Debug.Print Screen.ActiveControl.Name End Function