OK, Go to Tools-Macro-VBA Manager-Click New (For New VBa Project)
Click the button that says Visual Basic Editor
Righ Click on your new project, by default it will be called ACADProject
Click insert Module, then paste the code in the code that I gave you.
By default the new module puts in Sub and End Sub, so make sure you delete it because my code already has it.
Save it
Then you can go back to Tools-Macro-Macros and run it from there
I hope this helps?
Let me know if you have any problem
Mark