I changed the version to acad 2000 cause I don't have the particular version you have/was posted. I then ran the macro(revised already posted). It worked. The new file name is testab.dxf

EDIT: Added the name of the new dxf