Instead of function you use Sub:

Public Sub YourSub(param1 as Type1, param2 as Type2)

End Sub

You can see that Sub do not return any type.