Quote:

Wouldn't Exit @error be better.




I had meant to add a Exit @error under the messagebox. The messagebox was simply to let the user know that the file name was bad.

Quote:

he wants to inbuild the data instead



Exactly, I have very large data files in excess of 100 entries each and there is currently 5 of these files.

I will be calling these files as part of my script, and this gives me the ability to tokenize the data files so that users can not "easily" modify the data.

After I posted I realized that this is more of a standalone script rather than an UDF, but oh well I had already posted it as such.

I have edited the script to add the Exit @Error.
_________________________
Today is the tomorrow you worried about yesterday.