Thank you. I will test this out either this week or next week depending on when I am finished with a few other things. I knew that somebody had written some code along those lines as surely this is a very common requirement. You should incorporate that into the UDF's and call it scriptruntime or something like that. Thank you. I will let you know the results of the test when I have time to run it!