문제

I am making an on-screen custom keyboard, and I am wondering how to send all click events to one method and have it determine what to do based on the name of the control. Is this possible?

도움이 되었습니까?

해결책

You can set the On Click line to the name of a function, say =MyFunction()

Function on click

Then:

Function MyFunction()
    'The button that was clicked
    Debug.Print Screen.ActiveControl.Name
End Function
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top