I wrote an Add-In for the VBE-Development enviroment like described here: How to write a Add-in for the development enviroment: "Microsoft Visual Basic for Applications