Running action recorded command through VBA

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I have multiple rectangles in a single dwg. I want to copy one rectangle based on user input. For example I prompt the user for width and length and it copies that specific rectangle. I know how to get the user input and i can get the rectangle copied. My problem is the command I use to do it. I recorded an action recording in autocad called "1836CPY" which copies the 18" x 36" rectangle in my dwg. I call it in my vba code as you see below:
ThisDrawing.SendCommand "COPY1836" & vbCr
It works flawlessly, the only problem is after I run this code once that line seems to make it to where the vba never stops running. I can't hit stop and I can't edit my code. I can't even hit ctrl + break to stop the code. the vba editor is just frozen, like it is running indefinitely. I know sendcommand is not ideal but it works very well with copying what rectangle I need. Please help!