I'm retired and no longer have a license to use AutoCAD to debug code. I still try to answer simple questions.
It's always best to describe the problem you're having as best you can.
If it's about code you've downloaded from a forum like this your best bet is to post your question as a reply to that post since the one who posted it and everyone who's downloaded and used it understand the code and may already have created a solution to that problem.
Post a link to where you downloaded the code at least for a background on what it's supposed to do.
I wrote a lot of code but only when someone else hadn't already posted code online that did what I needed. I always added a remark at the top to include the author and link to where I downloaded it. Often updates and modifications to that code will be added to the same link.