Command Button Control.
You can use the AutoRepeat property to specify whether an event procedure or macro runs repeatedly while a command button on a form remains pressed.
The AutoRepeat property uses the following settings.
Setting | Description | Visual Basic |
Yes | The macro or event procedure in the Click event runs repeatedly while the command button remains pressed. | True (-1) |
No | (Default) The macro or event procedure runs once. | False (0) |
You can set this property using the property sheet, a macro, or Visual Basic.
The initial repeat of the event procedure or macro occurs 0.5 second after it first runs. Subsequent repeats occur either 0.25 second apart or the duration of the event procedure or macro, whichever is longer.