>Cetin and Ed:
>
>With your help now this code is working. But sometimes DoubleToNum function provokes C000005 error.
>
>Indeed I am forgetting something.
>
>Alejandro Fernandez
Alejandro,
Are you sure it's DoubleToNum invoking C000005 ? Might it something else with DLL.
Cetin