Hi,
ok here are the instructions for adding the 'Custom Macro' Button/Tab in the ribbon:
1) Click on File
2) Click on Options
3) Click on Customize Ribbon
4) You will now see two list box's, click anywhere in the right hand size box and at the botton click 'New Tab'
5) Now click on 'New Tab (Custom)" and from the bottom click 'Rename' and rename it 'Custom Macro'
6) Now click on 'New Group' underneath your custom macro so that it is selected.
Note for the next part the code must already be in the project. so use the spread sheet i attached earlier instead of using a new workbook.
6) On the left list box, you will see a drop down menu at the top called 'choose commands from' drop that down and choose 'Macros' this will now show you two macros.
7) click on the first Macro and click the 'Add' button. you shold see that the macro has now moved to your custom macro new group?
8) click the second macro and press Add again.
9) Now click on each of the macro and select rename you can assign a picture to each one too. see the attached.
probably wise to print this out and see if you can follow it.
Now to address the error. this is occuring because the code needs a reference to a library. Here is how you need to add that reference.
1) open the VBA editor (Alt + F11)
2) click on Tools
3) click on References
4) look for 'Microsoft Visual Basic for Applications Extensibility 5.3'
5) tick the box next to it and press ok.
you may have a different version other than 5.3 - this should not matter.
Thats it....should work.
any problems let me know.