Hi Breizh

Thanks for changing your post.

It doesn't show the whole Sub. Does it show all your changes?

It would be better with a sample file showing me what "Schedule4Trays.xlsm!ODCheck" does, I can guess by the sheetname, but guessing is never a good thing. Are the tray sizes in the same workbook?

Then I can set it up to try the whole exercise.

Is that possible?

I'm a bit rusty with AutoCAD Vba so it might take a few days to get you a result, unless , of course, someone else has a go.

Cheers
Alistair