Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Use VBScript to extend the Click event of a control in a custom form page.
Open the Script Editor.
How?
For the control to which you want to add a Click event, for example, a command button control, add the following. In the example, CommandButton1 is the name of the control.
Sub CommandButton1_Click
End Sub
- Enter the code that you want in the event.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.