you can add the UDF by pressing "Alt" + "F11" to open the visual basic editor
add a code module and past the code into it .. its not hard