Hi Breizh29

You have enclosed your code in Quote Tags not Code tags, if you correct this then I will have a look, your code appears to be cut short.

I wrote the Excel/AutoCad macro

Cheers
Alistair