Do you have an example excel spreadsheet to test with? Also the code you're using to call the function? I might have time to try to help troubleshoot.