Did you download and include the FileIO UDF?

The latest version is here.

Also - no need to assign $File to $File1 - either replace all $File1 with $File or vice-versa and eliminate the $File1=$File line.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D