You mean a new workbook?
Lots of people put this kind of thing in their personal.xls and store that file
in their XLStart folder. (But you don't need to.) But by having the file in
the XLStart folder, then excel will open it each time it starts--so those
functions are always available.
In any case, you'll have to have the workbook with the function open to use it
in other workbooks.
Then you can use it like this:
=personal.xls!leesort(a1)
Another option is to save that personal file as an addin (I use personal.xla)
and keep it in your XLStart folder.
Then you can use this:
=leesort(a1)
Just like a function built into excel.
====
Just a warning note.
If you're going to share this workbook with this function with others, don't
call it personal.xls (or personal.xla). The other users may have stuff in their
own personal.xl* files and need their files open instead.
Call your workbook:
LeeUtils.xls
or
LeeUtils.xla
Then tell your users to store that file in a specific folder (C:\ExcelUtils,
say). Then you'll be able to share files that use these functions with no
problem.
If you end up using an addin, tell the users to install the addin via:
tools|addins|browse to
c:\ExcelUtils
and turn it on.