How?
Add macro code for a control to be used in PowerPoint
Select the control, and then in the Control Toolbox, click View Code .
In Microsoft Visual Basic Editor, write your macro code.
When you finish writing the macro, on the File menu, click Close and Return to Microsoft PowerPoint.
Note For information about writing macro code, see Microsoft Visual Basic Help.
Add a Web script for a control to be used on a Web page
On the Tools menu, point to Macro, and then click Microsoft Script Editor.
In Microsoft Script Editor, write your script, using the control ID to handle events for the control.
When you finish writing the script, on the File menu, click Exit to return to Microsoft PowerPoint.