Have you looked at the Kix XLSlib function library?

The most current version is on my web site - you can grab the individual UDF library or a zip of every function in the library. You can open and save (which might be all you need) as well as perform a wide array of data manipulation tasks with the library without having to re-invent the wheel.

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