I have an Excel application that I want to make faster. I want to move all my functions code into .dll files. How should I go about this?

Thanks for any advice in advance.