Event fired if a function key 1 - 24 is pressed.

Syntax:

OnPressFunctionKey(FunctionKeyNumber As Long)
Parameters: FunctionKeyNumber Number of the function key that has been pressed.
Example:
' in a class module "EventClass"

Dim WithEvents App As Application

Private Sub App_OnPressFunctionKey(FunctionKeyNumber As Long) 
 
[...]

End Sub

' in a module

Public EventManager As New EventClass

Sub TestMacro()
	Set EventManager.App = Application
End Sub

See also:

Class Application

Last Updated: 08/18/04