You build the DLL in VB (make it a DLL project).
Compile it.
Register it using Regsvr32.
Once registered, you can use it by adding a reference to it in VBA.
"Do you have an example or a site that I can use as a reference/How to?"
Try googling.
BTW: other programming languages can build DLL files, not just VB.
Gerry