Create a new ActiveX DLL project. Add a new Class Module to your project. Add functions you require to the class module then compile the project.
Any functions within a class that are declared as Public will be available to external programs that have a reference made to the DLL you have...