Hi Salome,
It is not possible to call a sub from a standard ArcPad tool, however you can create your own custom tool and implement your routine to invoke the action of the tool by using internal commands e.g.
Application.ExecuteCommand("ModeSelect")
Check out the Customising ArcPad help and search for internal commands
Hope this helps.
Cheers,
Gareth