You need to put it in a Standard Module and make it Public. So, you put it in a standard module (not a form's module) and set it public by either adding the public keyword or by removing the Private keyword:
Public Function YourFunctionName()
or
Function YourFunctionName()
like that and then it should show up in the list.