I have been using this routine to put xrefs on a specific layer for years. It has a problem though, the dialogue box doesn't work as expected. I don't have the skill set to fix it. There's not many lines of code, so I was hoping one of you "brainiacs" out there would be willing to fix it for me.
Thanks for looking!