Click VIEW in the menu and select TOOLBARS. In the list of available
toolbars select the CONTROL TOOLBOX toolbar.
Click the first button on the toolbar, the one with the pencil, triangle &
ruler, to activate design mode.
Right-click the command button and select VIEW CODE.
You can either write the macro or assign an existing one to the buttons
Click event.