QP School

Full Version: Running VBA code when a button is clicked
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Description:

You can assign code to a button to run when the button is clicked.

Example:

Sub Button_Click()
    MsgBox "Button clicked!"
End Sub