I have written a function in excel vba to change months in the format "Jan", "Feb" etc. to numbers ie. 01, 02. This works fine except that when I try to use it in a cell it doesn't recognise it and returns #NAME?. When I wrote the function originally it worked fine and I can't think of anything I might have changed that could affect it. Any help would be appreciated. Durkin