Never mind, I figured it out. As I posted on your other message, put
a function in the OnAction property.
1) Click View/Toolbars/Customize from the menu while in design view.
2) Right click on the previously added Duplicate button and select
Properties.
3) Put the name of the function you wish to run in the OnAction box.
Use this syntax: =SomeFunction( )