Howdy. Once you have code written, then you can assign it to a menu item. Right-click a toolbar, and choose Customize. Then in the middle tab (Commands), on the left scroll down to Macros and select it. On the right, click and drag the Custom Menu Item icon to the menu where you want, or toolbar where you want. When you see a dark vertical line, release the mouse , then right-click it to choose Assign Macro. Then, right-click it again to change its name.
old, slow, and confused
but at least I'm inconsistent!