Sample codes: VBA - Returning strings to VBA from a DLL VBA_Formula - Passing strings to C++ DLL from VBA / Excel formula