Right click on the toolbar and select customise. Can get
to this with the "View" "Toolbar" "Customise...".
This brings up the customise box. Right click then on the
button you wish to assign a macro to. The menu then has a
place towards the bottom where the macro can be assigned.