there are already udf's written that read and write to excel, the rest is only a bit string manipulation ... Do a search on udf forum
_________________________